fix(libSceAgcDriver): report module-relative code offsets on macOS #5619
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5619"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by yripper on 2026-10-14T01:25:44Z.
What
ModuleOffsetin the AGC driver's guest memory profiling turns sync and caller sites into module-relative offsets so the reports can be symbolized. On macOS it fell through to the generic path and printed absolute addresses, which change every run under ASLR. It now resolves the module base withdladdr, as the Windows path does withGetModuleHandleExA. Linux and Windows are unchanged.Tested
macOS 26 on an M1 Pro, x86-64 build under Rosetta 2, with MoltenVK. Ran God of War: Sons of Sparta (PPSA28997) with
APS5_PROFILE_DRAW=1: the sync and caller sites in the reports print module offsets instead of absolute addresses. Linux and Windows code paths are untouched (the change is inside#elif defined(__APPLE__)).Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by yripper on 2026-10-14T22:46:54Z.
Closing for now so the guest arena PR that @mugurc asked for in #1 can be my one open pull request. I'll reopen this one after that is merged.
Pull request closed