aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-ifunc/ifunc-14e-x86-64.d
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-12-21 18:15:22 +0000
committerH.J. Lu <hjl.tools@gmail.com>2012-12-21 18:15:22 +0000
commita5479e5ff4c29dcf93acde1424b69d4909fd3044 (patch)
treec1908afeee4aa8472b534f890d7d416765aab6f0 /ld/testsuite/ld-ifunc/ifunc-14e-x86-64.d
parentedcac0c105556029774320bc8288beb472e999b5 (diff)
downloadfsf-binutils-gdb-a5479e5ff4c29dcf93acde1424b69d4909fd3044.zip
fsf-binutils-gdb-a5479e5ff4c29dcf93acde1424b69d4909fd3044.tar.gz
fsf-binutils-gdb-a5479e5ff4c29dcf93acde1424b69d4909fd3044.tar.bz2
Properly adjust h->plt.refcount
bfd/ PR ld/14980 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Properly adjust h->plt.refcount. * elf64-x86-64.c (elf_x86_64_adjust_dynamic_symbol): Likewise. ld/testsuite/ PR ld/14980 * ld-ifunc/ifunc-14c.s: New file. * ld-ifunc/ifunc-14e-i386.d: Likewise. * ld-ifunc/ifunc-14e-x86-64.d: Likewise. * ld-ifunc/ifunc-14f-i386.d: Likewise. * ld-ifunc/ifunc-14f-x86-64.d: Likewise.
Diffstat (limited to 'ld/testsuite/ld-ifunc/ifunc-14e-x86-64.d')
-rw-r--r--ld/testsuite/ld-ifunc/ifunc-14e-x86-64.d12
1 files changed, 12 insertions, 0 deletions
diff --git a/ld/testsuite/ld-ifunc/ifunc-14e-x86-64.d b/ld/testsuite/ld-ifunc/ifunc-14e-x86-64.d
new file mode 100644
index 0000000..0955c92
--- /dev/null
+++ b/ld/testsuite/ld-ifunc/ifunc-14e-x86-64.d
@@ -0,0 +1,12 @@
+#source: ifunc-14a.s
+#source: ifunc-14c.s
+#source: ifunc-14b.s
+#ld: -shared -m elf_x86_64 -z nocombreloc
+#as: --64
+#readelf: -r --wide
+#target: x86_64-*-*
+
+#failif
+#...
+.* +R_X86_64_NONE +.*
+#...