Skip to content

Commit

Permalink
Overwrite wuts __syscall_getreent
Browse files Browse the repository at this point in the history
  • Loading branch information
Maschell committed Apr 20, 2024
1 parent 093ef7a commit 4309e62
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/imports.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ IMPORT(OSGetThreadSpecific);
IMPORT(OSSetThreadSpecific);
IMPORT(OSReport);
IMPORT(OSSwapAtomic);
IMPORT(OSIsDebuggerPresent);

IMPORT(exit);
IMPORT(_Exit);
Expand Down
4 changes: 4 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 4309e62

Please sign in to comment.