From: nobody <> Date: Fri, 21 Dec 2012 18:15:23 +0000 (+0000) Subject: This commit was manufactured by cvs2svn to create branch 'binutils- X-Git-Tag: binutils-2_23_2~125 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7184c404031f1fdbf9c6686c4aa466eb2999d5cf;p=thirdparty%2Fbinutils-gdb.git This commit was manufactured by cvs2svn to create branch 'binutils- 2_23-branch'. Cherrypick from master 2012-12-21 18:15:22 UTC H.J. Lu '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 --- diff --git a/ld/testsuite/ld-ifunc/ifunc-14c.s b/ld/testsuite/ld-ifunc/ifunc-14c.s new file mode 100644 index 00000000000..3cde56e89ae --- /dev/null +++ b/ld/testsuite/ld-ifunc/ifunc-14c.s @@ -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 index 00000000000..53809870cca --- /dev/null +++ b/ld/testsuite/ld-ifunc/ifunc-14e-i386.d @@ -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 index 00000000000..0955c92f138 --- /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 +.* +#... diff --git a/ld/testsuite/ld-ifunc/ifunc-14f-i386.d b/ld/testsuite/ld-ifunc/ifunc-14f-i386.d new file mode 100644 index 00000000000..ed3dc539d0f --- /dev/null +++ b/ld/testsuite/ld-ifunc/ifunc-14f-i386.d @@ -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 index 00000000000..12fb2257a84 --- /dev/null +++ b/ld/testsuite/ld-ifunc/ifunc-14f-x86-64.d @@ -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 +.* +#...