Feature/stub by address (#61)

* feat: split runtime code in small files to be easy to develop

* feat: split stubs in inl files

* feat: function auto link function treat functions with underscore as same as without underscore

* feat: remove underscore prefix from stubs

* feat: thread and flags refactor

* feat: propagate request stop
feat: some elf validation on runtime

* feat: remove Z7 compiler options
feat: added a literal float case error on vu

* fix: fix critical recompiler error on marking pc calls

* feat: better system interrupt
refactor: small refactor on thread system

* feat: stubs implements for resident evil code veronica

* feat: merge fileio

* feat: stub by address

* feat: codegen now auto-routes J/JAL callssites with known relocation symbols to syscalls/stubs
This commit is contained in:
Ranieri
2026-02-18 01:35:20 -03:00
committed by GitHub
parent 4a538d3589
commit 043bf3bf8d
8 changed files with 158 additions and 17 deletions
+13 -2
View File
@@ -11,8 +11,19 @@ single_file_output = false
# Path to runtime header (optional)
runtime_header = "include/ps2_runtime.h"
# Functions to stub (these will generate empty implementations)
stubs = ["printf", "malloc", "free", "memcpy", "memset", "strncpy", "sprintf"]
# Functions to stub (these will generate wrappers to runtime syscall/stub handlers when names match)
# You can also bind stripped functions by address with "handler@0xADDRESS".
stubs = [
"printf",
"malloc",
"free",
"memcpy",
"memset",
"strncpy",
"sprintf",
# "sceCdRead@0x00123456",
# "SifLoadModule@0x00127890",
]
# Functions to skip (these will not be recompiled)
skip = ["abort", "exit", "_exit"]