diff --git a/src/imports.h b/src/imports.h index b5bf0c4..7eff504 100644 --- a/src/imports.h +++ b/src/imports.h @@ -59,6 +59,7 @@ IMPORT(OSGetThreadSpecific); IMPORT(OSSetThreadSpecific); IMPORT(OSReport); IMPORT(OSSwapAtomic); +IMPORT(OSIsDebuggerPresent); IMPORT(exit); IMPORT(_Exit); diff --git a/src/main.cpp b/src/main.cpp index 89c3df7..c595a2c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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);