diff options
author | Preston Pan <preston@nullring.xyz> | 2024-01-09 18:39:49 -0800 |
---|---|---|
committer | Preston Pan <preston@nullring.xyz> | 2024-01-09 18:39:49 -0800 |
commit | ac6004730fa54a756d1627a4e8450cd32df86f75 (patch) | |
tree | 8cb4d59438a1252fa069788b2ffb78b2a1bbad3e /build/macros.s | |
parent | 6ccf0572469dfc8cd8fa7b8537b2ac6c265d2df6 (diff) |
reorganize directory structure
Diffstat (limited to 'build/macros.s')
-rw-r--r-- | build/macros.s | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/build/macros.s b/build/macros.s new file mode 100644 index 0000000..16d3555 --- /dev/null +++ b/build/macros.s @@ -0,0 +1,26 @@ + .file "macros.c" + .text + .section .rodata.str1.1,"aMS",@progbits,1 +.LC0: + .string "ERROR: %s\n" + .text + .p2align 4 + .globl die + .type die, @function +die: +.LFB22: + .cfi_startproc + subq $8, %rsp + .cfi_def_cfa_offset 16 + movq %rdi, %rdx + movq stderr(%rip), %rdi + xorl %eax, %eax + leaq .LC0(%rip), %rsi + call fprintf@PLT + movl $1, %edi + call exit@PLT + .cfi_endproc +.LFE22: + .size die, .-die + .ident "GCC: (GNU) 13.2.1 20230801" + .section .note.GNU-stack,"",@progbits |