aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/pr21389c.d
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-04-17 07:47:17 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-04-17 07:47:32 -0700
commite6699019c4f363f804f9646974ab1d5e78785ffc (patch)
tree1e81c7c4cb6760c4115f4ab0b9cb0d2ef970629e /ld/testsuite/ld-elf/pr21389c.d
parent305d16a9beff2a817ee03b3881da68eb3a29edec (diff)
downloadgdb-e6699019c4f363f804f9646974ab1d5e78785ffc.zip
gdb-e6699019c4f363f804f9646974ab1d5e78785ffc.tar.gz
gdb-e6699019c4f363f804f9646974ab1d5e78785ffc.tar.bz2
Put soname in the version definition section
commit 902e9fc76a0ec9f642cefa71ef88cca1c675ad54 Author: Maciej W. Rozycki <macro@imgtec.com> Date: Tue Feb 21 01:46:42 2017 +0000 PR ld/20828: Move symbol version processing ahead of GC symbol sweep breaks version definition with --version-script --soname. This patch fixes it by getting soname index before generating the version definition section. bfd/ PR ld/21389 * elflink.c (bfd_elf_size_dynamic_sections): Get soname index before generating the version definition section. ld/ PR ld/21389 * testsuite/ld-elf/pr21389.map: New file. * testsuite/ld-elf/pr21389.s: Likewise. * testsuite/ld-elf/pr21389a.d: Likewise. * testsuite/ld-elf/pr21389b.d: Likewise. * testsuite/ld-elf/pr21389c.d: Likewise.
Diffstat (limited to 'ld/testsuite/ld-elf/pr21389c.d')
-rw-r--r--ld/testsuite/ld-elf/pr21389c.d8
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/pr21389c.d b/ld/testsuite/ld-elf/pr21389c.d
new file mode 100644
index 0000000..76ac37b
--- /dev/null
+++ b/ld/testsuite/ld-elf/pr21389c.d
@@ -0,0 +1,8 @@
+#source: pr21389.s
+#ld: -shared -soname=pr21389.so
+#readelf: -d
+#target: *-*-linux* *-*-gnu*
+
+#...
+ 0x[0-9a-f]* \(SONAME\) +Library soname: \[pr21389.so\]
+#pass