aboutsummaryrefslogtreecommitdiff
path: root/test/execute/0003-weaksym.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/execute/0003-weaksym.s')
-rw-r--r--test/execute/0003-weaksym.s12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/execute/0003-weaksym.s b/test/execute/0003-weaksym.s
new file mode 100644
index 0000000..f6c12ce
--- /dev/null
+++ b/test/execute/0003-weaksym.s
@@ -0,0 +1,12 @@
+.data
+.weak foo
+foo:
+ .quad 0
+
+.text
+.globl main
+main:
+ movq foo(%rip), %rax
+ ret
+
+.section .note.GNU-stack,"",@progbits