https://sourceware.org/bugzilla/show_bug.cgi?id=18886
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> --- Gold generates 2 relocations against strcmp and ld generates one: [hjl@gnu-6 pr18886]$ cat foo.S .text .globl foo .type foo, @function foo: jmp *strcmp@GOTPCREL(%rip) [hjl@gnu-6 pr18886]$ make gcc -B./ -g -Wall -c -o foo.o foo.S ld.gold -shared -o libfoo.so foo.o -lc -L/usr/lib64 readelf -r libfoo.so Relocation section '.rela.dyn' at offset 0x270 contains 1 entries: Offset Info Type Sym. Value Sym. Name + Addend 000000001488 000200000006 R_X86_64_GLOB_DAT 0000000000000000 strcmp@GLIBC_2.2.5 + 0 Relocation section '.rela.plt' at offset 0x288 contains 1 entries: Offset Info Type Sym. Value Sym. Name + Addend 0000000014a8 000200000007 R_X86_64_JUMP_SLO 0000000000000000 strcmp@GLIBC_2.2.5 + 0 [hjl@gnu-6 pr18886]$ ld.bfd -shared -o libfoo.so foo.o -lc -L/usr/lib64 [hjl@gnu-6 pr18886]$ readelf -r libfoo.so Relocation section '.rela.dyn' at offset 0x228 contains 1 entries: Offset Info Type Sym. Value Sym. Name + Addend 000000200368 000300000006 R_X86_64_GLOB_DAT 0000000000000000 strcmp@GLIBC_2.2.5 + 0 [hjl@gnu-6 pr18886]$ -- 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