[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/18886] Unnecessary PLT entry for IFUNC function from DSO
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug gold/18886] Unnecessary PLT entry for IFUNC function from DSO |
Date: |
Sun, 30 Aug 2015 17:52:07 +0000 |
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:
address@hidden pr18886]$ cat foo.S
.text
.globl foo
.type foo, @function
foo:
jmp address@hidden(%rip)
address@hidden 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
address@hidden + 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
address@hidden + 0
address@hidden pr18886]$ ld.bfd -shared -o libfoo.so foo.o -lc -L/usr/lib64
address@hidden 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
address@hidden + 0
address@hidden pr18886]$
--
You are receiving this mail because:
You are on the CC list for the bug.