diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-11-14 18:49:34 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-11-14 18:49:34 +0100 |
| commit | ce25bbd863904ac7784b647b6b8e22196e7674ff (patch) | |
| tree | e4e11995999db844bee50692e63d5c117af3e2f9 /src/blog/2023-11-14-test-visibility-c-macro/main3.s | |
| parent | 5ed505e280c6c6a7459bb2e4249313fa65df052f (diff) | |
| download | sebastiano.tronto.net-ce25bbd863904ac7784b647b6b8e22196e7674ff.tar.gz sebastiano.tronto.net-ce25bbd863904ac7784b647b6b8e22196e7674ff.zip | |
Added blog post
Diffstat (limited to 'src/blog/2023-11-14-test-visibility-c-macro/main3.s')
| -rw-r--r-- | src/blog/2023-11-14-test-visibility-c-macro/main3.s | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/blog/2023-11-14-test-visibility-c-macro/main3.s b/src/blog/2023-11-14-test-visibility-c-macro/main3.s new file mode 100644 index 0000000..6b7d9f9 --- /dev/null +++ b/src/blog/2023-11-14-test-visibility-c-macro/main3.s | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | .file "main3.c" | ||
| 2 | .text | ||
| 3 | .section .rodata.str1.1,"aMS",@progbits,1 | ||
| 4 | .LC0: | ||
| 5 | .string "%d\n" | ||
| 6 | .text | ||
| 7 | .globl main | ||
| 8 | .type main, @function | ||
| 9 | main: | ||
| 10 | .LFB12: | ||
| 11 | .cfi_startproc | ||
| 12 | subq $8, %rsp | ||
| 13 | .cfi_def_cfa_offset 16 | ||
| 14 | movl $351, %esi | ||
| 15 | leaq .LC0(%rip), %rdi | ||
| 16 | movl $0, %eax | ||
| 17 | call printf@PLT | ||
| 18 | movl $0, %eax | ||
| 19 | addq $8, %rsp | ||
| 20 | .cfi_def_cfa_offset 8 | ||
| 21 | ret | ||
| 22 | .cfi_endproc | ||
| 23 | .LFE12: | ||
| 24 | .size main, .-main | ||
| 25 | .ident "GCC: (GNU) 12.2.0" | ||
| 26 | .section .note.GNU-stack,"",@progbits | ||
