mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
bf52d7c720
Since x86 elf_*_check_relocs is called after all symbols have been resolved, there is no need to check undefined symbols for relocations against IFUNC symbols. bfd/ * elf32-i386.c (elf_i386_check_relocs): Don't check undefined symbols for relocations against IFUNC symbols. * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. ld/ * testsuite/ld-i386/i386.exp: Run pr19636-2e-nacl. * testsuite/ld-i386/pr19636-2e.d: Skip for NaCl targets. Remove .rel.plt section. * testsuite/ld-i386/pr19636-2e-nacl.d: New file.
22 lines
749 B
Makefile
22 lines
749 B
Makefile
#source: pr19636-2.s
|
|
#as: --32 -mrelax-relocations=no
|
|
#ld: -shared -Bsymbolic -m elf_i386
|
|
#readelf : -r --wide --dyn-syms
|
|
#target: i?86-*-nacl* x86_64-*-nacl*
|
|
|
|
Relocation section '\.rel\.dyn' at offset [0x0-9a-f]+ contains 3 entries:
|
|
+Offset +Info +Type +Sym. Value +Symbol's Name
|
|
[0-9a-f]+ +[0-9a-f]+ +R_386_32 +0+ +func
|
|
[0-9a-f]+ +[0-9a-f]+ +R_386_PC32 +0+ +func
|
|
[0-9a-f]+ +[0-9a-f]+ +R_386_GLOB_DAT +0+ +func
|
|
|
|
Relocation section '\.rel\.plt' at offset [0x0-9a-f]+ contains 1 entries:
|
|
+Offset +Info +Type +Sym. Value +Symbol's Name
|
|
[0-9a-f]+ +[0-9a-f]+ +R_386_JUMP_SLOT +0+ +func
|
|
|
|
Symbol table '\.dynsym' contains [0-9]+ entries:
|
|
+Num: +Value +Size Type +Bind +Vis +Ndx Name
|
|
#...
|
|
+[0-9]+: +[a-f0-9]+ +0 +NOTYPE +WEAK +DEFAULT +UND +func
|
|
#pass
|