aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/pr27128c.d
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-12-30 22:00:57 +1030
committerAlan Modra <amodra@gmail.com>2020-12-31 19:07:02 +1030
commitcab3f4da68672647cde72bc0c06ec08977819817 (patch)
tree868487907ff13abe6b131e712cae5e5eb3d5d146 /ld/testsuite/ld-elf/pr27128c.d
parent4ff509e75bf3488c302bea86b0db3dcdcad30818 (diff)
downloadgdb-cab3f4da68672647cde72bc0c06ec08977819817.zip
gdb-cab3f4da68672647cde72bc0c06ec08977819817.tar.gz
gdb-cab3f4da68672647cde72bc0c06ec08977819817.tar.bz2
PR27128, nm -P portable output format regression
binutils/ PR 27128 * nm.c (print_symname): Append version string to symbol name before printing the lot under control of "form". Append version to demangled names too. ld/ PR 27128 * testsuite/ld-elf/pr27128.s: New file. * testsuite/ld-elf/pr27128.t: Likewise. * testsuite/ld-elf/pr27128a.d: Likewise. * testsuite/ld-elf/pr27128b.d: Likewise. * testsuite/ld-elf/pr27128c.d: Likewise. * testsuite/ld-elf/pr27128d.d: Likewise. * testsuite/ld-elf/pr27128e.d: Likewise.
Diffstat (limited to 'ld/testsuite/ld-elf/pr27128c.d')
-rw-r--r--ld/testsuite/ld-elf/pr27128c.d16
1 files changed, 16 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/pr27128c.d b/ld/testsuite/ld-elf/pr27128c.d
new file mode 100644
index 0000000..f80c57b
--- /dev/null
+++ b/ld/testsuite/ld-elf/pr27128c.d
@@ -0,0 +1,16 @@
+#source: pr27128.s
+#ld: -shared -version-script pr27128.t
+#nm: -n --format=sysv
+#target: [check_shared_lib_support]
+#notarget: [is_underscore_target]
+# _Zrm1XS_ doesn't have an extra underscore.
+#xfail: hppa64-*-* tic6x-*-*
+# hppa64 uses dot-symbols, tic6x DYN lacks dynamic sections for this testcase
+
+#...
+VERS_2\.0 +\|0+\| +A +\| +OBJECT\| +\| +\|\*ABS\*
+#...
+foo@@VERS_2\.0 +\|[0-9a-f]+\| +T +\| +FUNC\|0+10\| +\|\.text
+#...
+_Zrm1XS_@@VERS_2\.0 +\|[0-9a-f]+\| +T +\| +FUNC\|0+10\| +\|\.text
+#pass