From 128684dfb24b710cc67bf3de293b31c25746db0c Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 14 Mar 2024 22:01:56 -0400 Subject: libc: Initial hyra libc commit Signed-off-by: Ian Moffett --- lib/libc/crt-src/amd64/crt0.S | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lib/libc/crt-src/amd64/crt0.S (limited to 'lib/libc/crt-src/amd64/crt0.S') diff --git a/lib/libc/crt-src/amd64/crt0.S b/lib/libc/crt-src/amd64/crt0.S new file mode 100644 index 0000000..d45d74c --- /dev/null +++ b/lib/libc/crt-src/amd64/crt0.S @@ -0,0 +1,13 @@ +.text +.globl _start + +_start: + xor %rbp, %rbp // End of callstack + + pushq %rsi // argv + pushq %rdi // argc + call __libc_init + + popq %rdi + popq %rsi + ud2 // TODO: Call exit() -- cgit v1.2.3