mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-30 12:44:10 +08:00
406b4ada55
Since GOTOFF relocations against IFUNC symbols must go through PLT, set PLT reference count to 1 for GOTOFF relocation. bfd/ PR ld/27998 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Count PLT for GOTOFF relocation against IFUNC symbols. (_bfd_x86_elf_adjust_dynamic_symbol): Likewise. ld/ PR ld/27998 * testsuite/ld-i386/i386.exp: Run PR ld/27998 tests. * testsuite/ld-i386/pr27998a.d: New file. * testsuite/ld-i386/pr27998a.s: Likewise. * testsuite/ld-i386/pr27998b.d: Likewise. * testsuite/ld-i386/pr27998b.s: Likewise.
8 lines
231 B
Makefile
8 lines
231 B
Makefile
#as: --32
|
|
#ld: -shared -melf_i386
|
|
#readelf: -r --wide
|
|
|
|
Relocation section '.rel.plt' at offset 0x[0-9a-f]+ contains 1 entry:
|
|
Offset Info Type Sym. Value Symbol's Name
|
|
[0-9a-f]+ +[0-9a-f]+ +R_386_IRELATIVE +
|