mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-22 08:33:12 -05:00
The Linux entry stub now passes each traced import through libc.prx's TraceImport_nid_no_patch before it calls the guest entry, and stores the returned thunk in the import's slot. The same imports are traced as on Windows: functions bound through a PLT slot or a GOT slot, without an addend, and not weak. TraceImport_nid_no_patch is bound eagerly through an added GLOB_DAT relocation, so a libc.prx without it fails at load. Each slot's page is made writable with mprotect first, so slots inside a PT_GNU_RELRO range can be replaced. --trace-imports now requires libc.prx among the libraries on Linux too, and is refused with --macos.