aboutsummaryrefslogtreecommitdiff
path: root/test/execute
diff options
context:
space:
mode:
authorAndrew Chambers <[email protected]>2021-10-24 14:34:23 +1300
committerAndrew Chambers <[email protected]>2021-10-24 14:34:37 +1300
commitcd21b90feaa9b66296b8614023349fae7d314b4b (patch)
tree198930320598fa39505d955f8ba3f8c927418689 /test/execute
parent0d53c9d7b78aec53922bd0d57dbe48db27570506 (diff)
Weak symbols.
Diffstat (limited to 'test/execute')
-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