diff options
| author | Andrew Chambers <[email protected]> | 2021-10-24 14:34:23 +1300 |
|---|---|---|
| committer | Andrew Chambers <[email protected]> | 2021-10-24 14:34:37 +1300 |
| commit | cd21b90feaa9b66296b8614023349fae7d314b4b (patch) | |
| tree | 198930320598fa39505d955f8ba3f8c927418689 /test/execute | |
| parent | 0d53c9d7b78aec53922bd0d57dbe48db27570506 (diff) | |
Weak symbols.
Diffstat (limited to 'test/execute')
| -rw-r--r-- | test/execute/0003-weaksym.s | 12 |
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 |
