summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-selective/keepdot.d
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-selective/keepdot.d')
-rw-r--r--ld/testsuite/ld-selective/keepdot.d9
1 files changed, 9 insertions, 0 deletions
diff --git a/ld/testsuite/ld-selective/keepdot.d b/ld/testsuite/ld-selective/keepdot.d
new file mode 100644
index 0000000..aadd5d4
--- /dev/null
+++ b/ld/testsuite/ld-selective/keepdot.d
@@ -0,0 +1,9 @@
+#ld: --gc-sections -Bstatic -e _start -T keepdot.ld
+#name: Preserve default . = 0
+#objdump: -h
+
+# Check that GC:ing does not mess up the default value for dot.
+
+#...
+[ ]+.[ ]+\.myinit[ ]+0+[48][ ]+0+[ ]+0+ .*
+#pass