summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/discarded1.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-x86-64/discarded1.s')
-rw-r--r--ld/testsuite/ld-x86-64/discarded1.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/discarded1.s b/ld/testsuite/ld-x86-64/discarded1.s
new file mode 100644
index 0000000..c638ed9
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/discarded1.s
@@ -0,0 +1,13 @@
+ .text
+.globl _start
+ .type _start, @function
+_start:
+ movq x@GOTPCREL(%rip), %rax
+ .size _start, .-_start
+.globl x
+ .data
+ .align 4
+ .type x, @object
+ .size x, 4
+x:
+ .long 2