LibC: Define SSP things

This commit is contained in:
Bananymous 2026-03-17 20:30:25 +02:00
parent b0db645248
commit 43e18148a6
1 changed files with 11 additions and 0 deletions

View File

@ -43,6 +43,17 @@ volatile Kernel::API::SharedPage* g_shared_page = nullptr;
#include <cxxabi.h> #include <cxxabi.h>
#endif #endif
extern "C" {
#if UINT32_MAX == UINTPTR_MAX
uintptr_t __stack_chk_guard = 0xe2dee396;
#else
uintptr_t __stack_chk_guard = 0x595e9fbd94fda766;
#endif
__attribute__((noreturn))
void __stack_chk_fail(void) { abort(); }
}
static void __dump_backtrace(int, siginfo_t*, void*); static void __dump_backtrace(int, siginfo_t*, void*);
static LibELF::AuxiliaryVector* find_auxv(char** envp) static LibELF::AuxiliaryVector* find_auxv(char** envp)