aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/discarded1.d
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-x86-64/discarded1.d')
-rw-r--r--ld/testsuite/ld-x86-64/discarded1.d15
1 files changed, 14 insertions, 1 deletions
diff --git a/ld/testsuite/ld-x86-64/discarded1.d b/ld/testsuite/ld-x86-64/discarded1.d
index c892595..e2ebeff 100644
--- a/ld/testsuite/ld-x86-64/discarded1.d
+++ b/ld/testsuite/ld-x86-64/discarded1.d
@@ -1,3 +1,16 @@
#as: --64
#ld: -melf_x86_64 -T discarded1.t
-#error: .*discarded output section: `.got.plt'
+#objdump: --sym -dw
+
+.*: +file format .*
+
+SYMBOL TABLE:
+#...
+0+8 g O .data 0+4 x
+#...
+
+Disassembly of section .text:
+
+0+ <_start>:
+[ ]*[a-f0-9]+: 48 c7 c0 08 00 00 00 mov \$0x8,%rax
+#pass