Overwrite wuts __syscall_getreent

This commit is contained in:
Maschell 2024-04-20 09:13:20 +02:00
parent 093ef7aa92
commit 4309e62aaa
2 changed files with 5 additions and 0 deletions

View File

@ -59,6 +59,7 @@ IMPORT(OSGetThreadSpecific);
IMPORT(OSSetThreadSpecific);
IMPORT(OSReport);
IMPORT(OSSwapAtomic);
IMPORT(OSIsDebuggerPresent);
IMPORT(exit);
IMPORT(_Exit);

View File

@ -90,6 +90,10 @@ extern "C" uint32_t start_wrapper(int argc, char **argv) {
return entryPoint;
}
extern "C" struct _reent *__syscall_getreent(void) {
return _impure_ptr;
}
extern "C" int _start(int argc, char **argv) {
uint32_t entryPoint = start_wrapper(argc, argv);