From 275be4b47037984205034920b4dc61e55fd2d6b5 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 14 Oct 2025 15:57:38 -0400 Subject: libc: Add __libc_init as well as cmdline arguments This commit introduces a libc initialization function @ __libc_init() a long with variables __argv __argc used for command line arguments Signed-off-by: Ian Moffett --- src/lib/libc/amd64/crt/crt0.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/libc/amd64/crt/crt0.S') diff --git a/src/lib/libc/amd64/crt/crt0.S b/src/lib/libc/amd64/crt/crt0.S index dc1a273..82bc9dd 100644 --- a/src/lib/libc/amd64/crt/crt0.S +++ b/src/lib/libc/amd64/crt/crt0.S @@ -30,7 +30,7 @@ .text .globl _start _start: - call main + call __libc_init mov $0x01, %rax xor %rdi, %rdi int $0x80 -- cgit v1.2.3