diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-14 18:10:13 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-14 19:28:34 +0100 |
| commit | 872cf03f26c2801ae6c3008ce5fa0d7856f5f85d (patch) | |
| tree | 94809812b71ee286eb5b74c70e4d08fc4c8dc057 /lib/libc/arch/x86_64 | |
| parent | ec769a83bde09c76bd6ad9ee7f391036dba5cd97 (diff) | |
libc: implement err/warn functions
Diffstat (limited to 'lib/libc/arch/x86_64')
| -rw-r--r-- | lib/libc/arch/x86_64/crt0.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/arch/x86_64/crt0.c b/lib/libc/arch/x86_64/crt0.c index 53ae222d..a278c525 100644 --- a/lib/libc/arch/x86_64/crt0.c +++ b/lib/libc/arch/x86_64/crt0.c @@ -10,6 +10,7 @@ extern int main(int, char *[]); char **environ; +char *__progname; struct __attribute__((packed)) auxv_t { uintptr_t a_type; @@ -29,6 +30,7 @@ __attribute__((used)) void __libc_start(uintptr_t *sp) argc = (int)(*sp); argv = (char **)(++sp); + __progname = argv[0]; sp += argc; environ = (char **)(++sp); |
