https://sourceware.org/bugzilla/show_bug.cgi?id=22883
Cary Coutant <ccoutant at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #1 from Cary Coutant <ccoutant at gmail dot com> --- I don't see how the Gnu linker is making this work. All your PLT32 relocations are missing the "-4" bias for a pc-relative reference. As far as I can see, gold is doing the right thing, and the assembler is emitting bad relocations. Relocation section '.rela.text' at offset 0x1cdc contains 30 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000000017 0000000a00000004 R_X86_64_PLT32 0000000000000026 mx_ownsCopy_8u + 0 000000000000005d 0000000a00000004 R_X86_64_PLT32 0000000000000026 mx_ownsCopy_8u + 0 0000000000000086 0000000a00000004 R_X86_64_PLT32 0000000000000026 mx_ownsCopy_8u + 0 00000000000000b0 0000000a00000004 R_X86_64_PLT32 0000000000000026 mx_ownsCopy_8u + 0 00000000000000da 0000000a00000004 R_X86_64_PLT32 0000000000000026 mx_ownsCopy_8u + 0 0000000000000104 0000000a00000004 R_X86_64_PLT32 0000000000000026 mx_ownsCopy_8u + 0 000000000000012e 0000000a00000004 R_X86_64_PLT32 0000000000000026 mx_ownsCopy_8u + 0 0000000000000158 0000000a00000004 R_X86_64_PLT32 0000000000000026 mx_ownsCopy_8u + 0 0000000000000182 0000000a00000004 R_X86_64_PLT32 0000000000000026 mx_ownsCopy_8u + 0 00000000000001ac 0000000a00000004 R_X86_64_PLT32 0000000000000026 mx_ownsCopy_8u + 0 00000000000001d6 0000000a00000004 R_X86_64_PLT32 0000000000000026 mx_ownsCopy_8u + 0 00000000000001f8 0000001600000004 R_X86_64_PLT32 0000000000000208 mx_ownsZero_8u + 0 00000000000002d2 0000001600000004 R_X86_64_PLT32 0000000000000208 mx_ownsZero_8u + 0 00000000000002f7 0000001600000004 R_X86_64_PLT32 0000000000000208 mx_ownsZero_8u + 0 000000000000031b 0000001600000004 R_X86_64_PLT32 0000000000000208 mx_ownsZero_8u + 0 000000000000033f 0000001600000004 R_X86_64_PLT32 0000000000000208 mx_ownsZero_8u + 0 0000000000000363 0000001600000004 R_X86_64_PLT32 0000000000000208 mx_ownsZero_8u + 0 0000000000000387 0000001600000004 R_X86_64_PLT32 0000000000000208 mx_ownsZero_8u + 0 00000000000003ab 0000001600000004 R_X86_64_PLT32 0000000000000208 mx_ownsZero_8u + 0 00000000000003cf 0000001600000004 R_X86_64_PLT32 0000000000000208 mx_ownsZero_8u + 0 00000000000003f3 0000001600000004 R_X86_64_PLT32 0000000000000208 mx_ownsZero_8u + 0 0000000000000417 0000001600000004 R_X86_64_PLT32 0000000000000208 mx_ownsZero_8u + 0 0000000000000438 0000002200000004 R_X86_64_PLT32 0000000000000448 mx_ownsSet_8u + 0 000000000000053c 0000002400000004 R_X86_64_PLT32 000000000000054c mx_ownsSet_16u + 0 000000000000066e 0000002700000004 R_X86_64_PLT32 000000000000067e mx_ownsSet_32s + 0 0000000000000757 0000002700000004 R_X86_64_PLT32 000000000000067e mx_ownsSet_32s + 0 00000000000007c0 0000002c00000004 R_X86_64_PLT32 00000000000007d0 mx_ownsSet_64s + 0 00000000000008c7 0000002e00000004 R_X86_64_PLT32 00000000000008dc mx_ownsSet_64sc + 0 0000000000000a0c 0000002c00000004 R_X86_64_PLT32 00000000000007d0 mx_ownsSet_64s + 0 0000000000000a5b 0000002e00000004 R_X86_64_PLT32 00000000000008dc mx_ownsSet_64sc + 0 -- 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