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. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils