From 69e6fe89fa9baafeca3e3515bb50897cd8ee7c35 Mon Sep 17 00:00:00 2001 From: Kacper Date: Mon, 15 Dec 2025 18:24:54 +0100 Subject: Add getauxval and cleanup libc startup --- lib/libc/stdlib/abort.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/libc/stdlib/abort.c') diff --git a/lib/libc/stdlib/abort.c b/lib/libc/stdlib/abort.c index 466329d1..70738ab3 100644 --- a/lib/libc/stdlib/abort.c +++ b/lib/libc/stdlib/abort.c @@ -16,12 +16,11 @@ _Noreturn void abort(void) raise(SIGABRT); - LIBC_LOCK(libc.lock.abort); + LIBC_LOCK(__libc.lock.abort); sa.sa_handler = SIG_DFL; __syscall(rt_sigaction, SIGABRT, &sa, 0, 64 / 8); - __syscall(tkill, ((struct __thread_self *)thrd_current())->tid, - SIGABRT); + __syscall(tkill, ((struct __thread_self *)thrd_current())->tid, SIGABRT); // This point should never be reached raise(SIGKILL); -- cgit v1.2.3