forked from Imagelibrary/binutils-gdb
bfd/
2009-07-16 H.J. Lu <hongjiu.lu@intel.com> * elf32-i386.c (elf_i386_relocate_section): Don't get local STT_GNU_IFUNC symbol for relocatable link. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. ld/testsuite/ 2009-07-16 H.J. Lu <hongjiu.lu@intel.com> * ld-ifunc/ifunc-5r-local-i386.d: New. * ld-ifunc/ifunc-5r-local-x86-64.d: Likewise.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2009-07-16 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* ld-ifunc/ifunc-5r-local-i386.d: New.
|
||||
* ld-ifunc/ifunc-5r-local-x86-64.d: Likewise.
|
||||
|
||||
2009-07-16 Nathan Sidwell <nathan@codesourcery.com>
|
||||
|
||||
* ld-arm/arm-target2.s: Add addend cases.
|
||||
|
||||
11
ld/testsuite/ld-ifunc/ifunc-5r-local-i386.d
Normal file
11
ld/testsuite/ld-ifunc/ifunc-5r-local-i386.d
Normal file
@@ -0,0 +1,11 @@
|
||||
#source: ifunc-5-local-i386.s
|
||||
#ld: -r -m elf_i386
|
||||
#as: --32
|
||||
#readelf: -r --wide
|
||||
#target: x86_64-*-* i?86-*-*
|
||||
|
||||
Relocation section '.rel.text' at .*
|
||||
[ ]+Offset[ ]+Info[ ]+Type[ ]+.*
|
||||
[0-9a-f]+[ ]+[0-9a-f]+[ ]+R_386_GOTPC[ ]+0+[ ]+_GLOBAL_OFFSET_TABLE_[ ]*
|
||||
[0-9a-f]+[ ]+[0-9a-f]+[ ]+R_386_PLT32[ ]+foo\(\)[ ]+foo[ ]*
|
||||
[0-9a-f]+[ ]+[0-9a-f]+[ ]+R_386_GOT32[ ]+foo\(\)[ ]+foo[ ]*
|
||||
10
ld/testsuite/ld-ifunc/ifunc-5r-local-x86-64.d
Normal file
10
ld/testsuite/ld-ifunc/ifunc-5r-local-x86-64.d
Normal file
@@ -0,0 +1,10 @@
|
||||
#source: ifunc-5-local-x86-64.s
|
||||
#as: --64
|
||||
#ld: -r -melf_x86_64
|
||||
#readelf: -r --wide
|
||||
#target: x86_64-*-*
|
||||
|
||||
Relocation section '.rela.text' at .*
|
||||
[ ]+Offset[ ]+Info[ ]+Type[ ]+.*
|
||||
[0-9a-f]+[ ]+[0-9a-f]+[ ]+R_X86_64_PLT32[ ]+foo\(\)[ ]+foo - 4
|
||||
[0-9a-f]+[ ]+[0-9a-f]+[ ]+R_X86_64_GOTPCREL[ ]+foo\(\)[ ]+foo - 4
|
||||
Reference in New Issue
Block a user