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
--- /dev/null
+ .text
+ .globl xxx
+ .type xxx, @function
+xxx:
+ jmp foo
+ .size xxx, .-xxx
+ .hidden foo
--- /dev/null
+#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 +.*
+#...
--- /dev/null
+#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 +.*
+#...
--- /dev/null
+#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 +.*
+#...
--- /dev/null
+#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 +.*
+#...