libc: Call __builtin_trap() in abort() if all else fails

This commit is contained in:
apio 2023-08-27 20:49:18 +02:00
parent a772d92e6f
commit c2f173f584
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -117,9 +117,7 @@ extern "C"
raise(SIGABRT);
// There is no way we could end up here, unless there is some sort of race condition or the kernel decided to
// change the default action for SIGABRT because it's a Tuesday.
__builtin_unreachable();
__builtin_trap();
}
__noreturn void _Exit(int status)