From ce25bbd863904ac7784b647b6b8e22196e7674ff Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Tue, 14 Nov 2023 18:49:34 +0100 Subject: Added blog post --- .../2023-11-14-test-visibility-c-macro/main2.s | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 src/blog/2023-11-14-test-visibility-c-macro/main2.s (limited to 'src/blog/2023-11-14-test-visibility-c-macro/main2.s') diff --git a/src/blog/2023-11-14-test-visibility-c-macro/main2.s b/src/blog/2023-11-14-test-visibility-c-macro/main2.s new file mode 100644 index 0000000..a3f580e --- /dev/null +++ b/src/blog/2023-11-14-test-visibility-c-macro/main2.s @@ -0,0 +1,45 @@ + .text + .file "main2.c" + .globl foo # -- Begin function foo + .p2align 4, 0x90 + .type foo,@function +foo: # @foo + .cfi_startproc +# %bb.0: + imull $42, %edi, %ecx + imull $-69, %esi, %eax + addl %ecx, %eax + retq +.Lfunc_end0: + .size foo, .Lfunc_end0-foo + .cfi_endproc + # -- End function + .globl main # -- Begin function main + .p2align 4, 0x90 + .type main,@function +main: # @main + .cfi_startproc +# %bb.0: + pushq %rax + .cfi_def_cfa_offset 16 + leaq .L.str(%rip), %rdi + movl $351, %esi # imm = 0x15F + xorl %eax, %eax + callq printf@PLT + xorl %eax, %eax + popq %rcx + .cfi_def_cfa_offset 8 + retq +.Lfunc_end1: + .size main, .Lfunc_end1-main + .cfi_endproc + # -- End function + .type .L.str,@object # @.str + .section .rodata.str1.1,"aMS",@progbits,1 +.L.str: + .asciz "%d\n" + .size .L.str, 4 + + .ident "clang version 15.0.7" + .section ".note.GNU-stack","",@progbits + .addrsig -- cgit v1.3