summaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2009-07-16 14:23:12 +0000
committerH.J. Lu <hjl.tools@gmail.com>2009-07-16 14:23:12 +0000
commit1f85278f1750261761fe5177ccd6b95633f50217 (patch)
tree3ef6a7722f7ddb3e674e62124a48e420c41463d2 /ld
parent9a6f4e976ddfb067ae1e954a03d8887d60956cbc (diff)
downloadbinutils-gdb-1f85278f1750261761fe5177ccd6b95633f50217.tar.gz
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.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog5
-rw-r--r--ld/testsuite/ld-ifunc/ifunc-5r-local-i386.d11
-rw-r--r--ld/testsuite/ld-ifunc/ifunc-5r-local-x86-64.d10
3 files changed, 26 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 1c00f3e9622..78ec4a8d54e 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -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.
diff --git a/ld/testsuite/ld-ifunc/ifunc-5r-local-i386.d b/ld/testsuite/ld-ifunc/ifunc-5r-local-i386.d
new file mode 100644
index 00000000000..18e1295ef6b
--- /dev/null
+++ b/ld/testsuite/ld-ifunc/ifunc-5r-local-i386.d
@@ -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[ ]*
diff --git a/ld/testsuite/ld-ifunc/ifunc-5r-local-x86-64.d b/ld/testsuite/ld-ifunc/ifunc-5r-local-x86-64.d
new file mode 100644
index 00000000000..e9ad214c45b
--- /dev/null
+++ b/ld/testsuite/ld-ifunc/ifunc-5r-local-x86-64.d
@@ -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