bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/22441] New: x86-64: wrong relocation type used for 32-bit index


From: jbeulich at novell dot com
Subject: [Bug gas/22441] New: x86-64: wrong relocation type used for 32-bit index-with-no-base addressing
Date: Wed, 15 Nov 2017 07:30:15 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=22441

            Bug ID: 22441
           Summary: x86-64: wrong relocation type used for 32-bit
                    index-with-no-base addressing
           Product: binutils
           Version: 2.30 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: jbeulich at novell dot com
  Target Milestone: ---

This piece of code

        .text
        .intel_syntax noprefix
        .global _start
_start:
        ret

apic_read:
        mov     eax, [edi*4+APIC_BASE]
        ret

apic_write:
        mov     [edi*4+APIC_BASE], esi
        ret

fails to link (with --defsym APIC_BASE=0xfee00000 passed to ld). With the "*4"
removed all works fine. Fix already submitted:
https://sourceware.org/ml/binutils/2017-11/msg00234.html.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]