aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/pr13947.d
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-04-13 23:20:00 +0000
committerH.J. Lu <hjl.tools@gmail.com>2012-04-13 23:20:00 +0000
commitaed64b35fbdb4d924b081158fd31015bb5d366c2 (patch)
tree39bf3df56deb3ebcb15f6abf3a69f544efb117ef /ld/testsuite/ld-x86-64/pr13947.d
parentca7781d2ae089e04d44ed0b14d946dcb651a3cf8 (diff)
downloadgdb-aed64b35fbdb4d924b081158fd31015bb5d366c2.zip
gdb-aed64b35fbdb4d924b081158fd31015bb5d366c2.tar.gz
gdb-aed64b35fbdb4d924b081158fd31015bb5d366c2.tar.bz2
Set reloc_count to 0 for reloc sections
bfd/ 2012-04-13 Alan Modra <amodra@gmail.com> PR ld/13947 * elflink.c (bfd_elf_final_link): Set reloc_count to 0 for reloc sections. ld/testsuite/ 2012-04-13 H.J. Lu <hongjiu.lu@intel.com> PR ld/13947 * ld-x86-64/x86-64.exp: Run pr13947. * ld-x86-64/pr13947.d: New file. * ld-x86-64/pr13947.s: Likewise.
Diffstat (limited to 'ld/testsuite/ld-x86-64/pr13947.d')
-rw-r--r--ld/testsuite/ld-x86-64/pr13947.d7
1 files changed, 7 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/pr13947.d b/ld/testsuite/ld-x86-64/pr13947.d
new file mode 100644
index 0000000..c8af34d
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/pr13947.d
@@ -0,0 +1,7 @@
+#ld: -shared --emit-relocs
+#readelf: -S --wide
+
+#failif
+#...
+ +\[ [0-9]\] .rela.rela.plt +RELA +[0-9a-f]+ +[0-9a-f]+ 0+ +.*
+#...