]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
This commit was manufactured by cvs2svn to create branch 'binutils-
authornobody <>
Fri, 21 Dec 2012 18:15:23 +0000 (18:15 +0000)
committernobody <>
Fri, 21 Dec 2012 18:15:23 +0000 (18:15 +0000)
2_23-branch'.

Cherrypick from master 2012-12-21 18:15:22 UTC H.J. Lu <hjl.tools@gmail.com> 'Properly adjust h->plt.refcount':
    ld/testsuite/ld-ifunc/ifunc-14c.s
    ld/testsuite/ld-ifunc/ifunc-14e-i386.d
    ld/testsuite/ld-ifunc/ifunc-14e-x86-64.d
    ld/testsuite/ld-ifunc/ifunc-14f-i386.d
    ld/testsuite/ld-ifunc/ifunc-14f-x86-64.d

ld/testsuite/ld-ifunc/ifunc-14c.s [new file with mode: 0644]
ld/testsuite/ld-ifunc/ifunc-14e-i386.d [new file with mode: 0644]
ld/testsuite/ld-ifunc/ifunc-14e-x86-64.d [new file with mode: 0644]
ld/testsuite/ld-ifunc/ifunc-14f-i386.d [new file with mode: 0644]
ld/testsuite/ld-ifunc/ifunc-14f-x86-64.d [new file with mode: 0644]

diff --git a/ld/testsuite/ld-ifunc/ifunc-14c.s b/ld/testsuite/ld-ifunc/ifunc-14c.s
new file mode 100644 (file)
index 0000000..3cde56e
--- /dev/null
@@ -0,0 +1,7 @@
+       .text
+       .globl xxx
+       .type   xxx, @function
+xxx:
+       jmp     foo
+       .size   xxx, .-xxx
+       .hidden foo
diff --git a/ld/testsuite/ld-ifunc/ifunc-14e-i386.d b/ld/testsuite/ld-ifunc/ifunc-14e-i386.d
new file mode 100644 (file)
index 0000000..5380987
--- /dev/null
@@ -0,0 +1,12 @@
+#source: ifunc-14a.s
+#source: ifunc-14c.s
+#source: ifunc-14b.s
+#ld: -shared -m elf_i386 -z nocombreloc
+#as: --32
+#readelf: -r --wide
+#target: x86_64-*-* i?86-*-*
+
+#failif
+#...
+.* +R_386_NONE +.*
+#...
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 (file)
index 0000000..0955c92
--- /dev/null
@@ -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 +.*
+#...
diff --git a/ld/testsuite/ld-ifunc/ifunc-14f-i386.d b/ld/testsuite/ld-ifunc/ifunc-14f-i386.d
new file mode 100644 (file)
index 0000000..ed3dc53
--- /dev/null
@@ -0,0 +1,12 @@
+#source: ifunc-14a.s
+#source: ifunc-14b.s
+#source: ifunc-14c.s
+#ld: -shared -m elf_i386 -z nocombreloc
+#as: --32
+#readelf: -r --wide
+#target: x86_64-*-* i?86-*-*
+
+#failif
+#...
+.* +R_386_NONE +.*
+#...
diff --git a/ld/testsuite/ld-ifunc/ifunc-14f-x86-64.d b/ld/testsuite/ld-ifunc/ifunc-14f-x86-64.d
new file mode 100644 (file)
index 0000000..12fb225
--- /dev/null
@@ -0,0 +1,12 @@
+#source: ifunc-14a.s
+#source: ifunc-14b.s
+#source: ifunc-14c.s
+#ld: -shared -m elf_x86_64 -z nocombreloc
+#as: --64
+#readelf: -r --wide
+#target: x86_64-*-*
+
+#failif
+#...
+.* +R_X86_64_NONE +.*
+#...