From ac6004730fa54a756d1627a4e8450cd32df86f75 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Tue, 9 Jan 2024 18:39:49 -0800 Subject: reorganize directory structure --- build/macros.s | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 build/macros.s (limited to 'build/macros.s') 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 -- cgit