fix(libc): prefer nested prx/*.guest.prx for RelinkedModulePath #6544
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6544"
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 notaxeltv on 2026-10-15T19:43:00Z.
What
RelinkedModulePathonly rewrotepath→path.guest.prxin the same directory. Titles that keep unboundEngine.*.prxnext toeboot.binwhile the converted PE lives underprx/*.guest.prx(the layout #3123 documents) thenLoadLibrarythe same binary twice on Windows; the second image's vtables stay unbound andJob0inEngine.Render.Core2jumps to null.After the same-directory
.guest.prxmiss, look underprx/,sce_module/andsce_modules/next to that path for the same filename before the existing case-insensitive match. Orthogonal to #6226 (stem match in the same directory).Tested
Windows 10, WinLibs GCC 15.2.0.
guest_dynamic_loaderpasses (covers nestedprx/Engine.Render.prx.guest.prx).tools/check_conventions.py --base upstream/mainpasses. PPSA03541 with separate unbound root copies and nested guests: past Job0, presents HDR10, then aborts onCOPY_DATAGDS (not implemented) — no null rip on Job0.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 repository (attach them to this PR)Made with Cursor
Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-15T20:19:11Z.
Review: COMMENTED
Linux run (Ubuntu 26.04, Intel i7-8700, GCC 15.2, full build, non-GPU tests), head
83e675746merged ontomain44df21632.guest_dynamic_loaderandguest_dynamic_loader_fixed_basepass, including the new nestedprx/Engine.Render.prx.guest.prxcase.General.cppfrommainand the PR's test, both abort atGuestDynamicLoader.cpp:109(Require(nested != nullptr), the nested load), so the test protects the change on Linux too.Non-GPU suite (
ctest -E "^agc"): same result asmain; onlyfile_writer_binaryandfile_writer_textfail, and they fail onmaintoo on this machine (Ubuntu 26.04 coreutils).Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-17T10:38:36Z.
Thanks, the change looks right for the layout it targets (a converted copy in
prx/orsce_module/, the PPSA03541 double load on Windows). Two asks and a rebase:#6226 changes the same function (
RelinkedModulePath) for a different layout. The intended order once both land is: exact, then same directory ignoring case, then nested, then stem.The branch is about 600 commits behind main, so please rebase onto current main before we run CI.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-21T06:56:57Z.
@notaxeltv a heads-up for the rebase: #8626 has just merged and changed
RelinkedModulePathincore/libs/prx/libc/src/General.cpp(exact match, then case-insensitive, then a guarded stem fallback). This branch now conflicts withmainin that function, so the nestedprx/*.guest.prxpreference needs to be re-applied on top of the new lookup order. The earlier asks above still apply.Pull request closed