summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/unique1.d
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-x86-64/unique1.d')
-rw-r--r--ld/testsuite/ld-x86-64/unique1.d10
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/unique1.d b/ld/testsuite/ld-x86-64/unique1.d
new file mode 100644
index 0000000..00afd38
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/unique1.d
@@ -0,0 +1,10 @@
+#name: STB_GNU_UNIQUE with -Bsymbolic
+#as: --64
+#ld: -melf_x86_64 -shared -Bsymbolic
+#readelf: -rs --wide
+
+#...
+[0-9a-f]+ +[0-9a-f]+ +R_X86_64_GLOB_DAT +[0-9a-f]+ bar \+ 0
+#...
+ +[0-9]+: +[0-9a-f]+ +8 +OBJECT +UNIQUE +DEFAULT +[0-9]+ bar
+#pass