Road of Death (PPSA07286) fails on startup: missing libSceXml.prx #2591

Closed
opened 2026-10-10 07:35:43 +00:00 by LightStorm72 · 13 comments
LightStorm72 commented 2026-10-10 07:35:43 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LightStorm72 on 2026-10-10T07:35:43Z.


Description

When attempting to run the converted executable for Road of Death (PPSA07286) on Windows, the application halts immediately during startup because libSceXml.prx is missing from the system libraries directory.

libSceXml.prx is currently not built or implemented in the core/libs/prx tree. Creating an initial implementation or throwing stub for libSceXml.prx would allow the loader to resolve this system module and proceed further into the boot sequence.

Steps to Reproduce

  1. Convert eboot.elf and bundled modules using relinker --windows .
  2. Move converted guest modules into app0/sce_module/ .
  3. Copy compiled AnyPS5 system libraries to libs/ and place MinGW dependencies in the root executable directory.
    4.Launch .\app.exe via PowerShell. The application immediately fails with Error 126 attempting to locate libSceXml.prx .

Environment & Specifications
OS: Windows 11 64-bit
CPU: AMD Ryzen 5 3600 (6-Core / 12-Thread)
GPU: NVIDIA GeForce RTX 2070 SUPER
RAM: 32 GB DDR4 @ 3200 MHz
Shell: PowerShell 7
AnyPS5 Build: Latest main (Compiled via MinGW-w64)

Console Output

PS D:\Road of Death> .\app.exe
[time] scheduler tick raised to 0.5 ms (was 0.50 ms, now 0.50 ms, timed waits fine)
 -> FAILED
Failed to load module: D:\Road of Death\libs\libSceXml.prx
GetLastError: 126 - The specified module could not be found.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5789226911 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2591). Originally posted by [LightStorm72](https://github.com/LightStorm72) on 2026-10-10T07:35:43Z. --- ### Description When attempting to run the converted executable for **Road of Death** (`PPSA07286`) on Windows, the application halts immediately during startup because `libSceXml.prx` is missing from the system libraries directory. `libSceXml.prx` is currently not built or implemented in the `core/libs/prx` tree. Creating an initial implementation or throwing stub for `libSceXml.prx` would allow the loader to resolve this system module and proceed further into the boot sequence. Steps to Reproduce 1. Convert eboot.elf and bundled modules using relinker --windows . 2. Move converted guest modules into app0/sce_module/ . 3. Copy compiled AnyPS5 system libraries to libs/ and place MinGW dependencies in the root executable directory. 4.Launch .\app.exe via PowerShell. The application immediately fails with Error 126 attempting to locate libSceXml.prx . Environment & Specifications OS: Windows 11 64-bit CPU: AMD Ryzen 5 3600 (6-Core / 12-Thread) GPU: NVIDIA GeForce RTX 2070 SUPER RAM: 32 GB DDR4 @ 3200 MHz Shell: PowerShell 7 AnyPS5 Build: Latest main (Compiled via MinGW-w64) ### Console Output ```text PS D:\Road of Death> .\app.exe [time] scheduler tick raised to 0.5 ms (was 0.50 ms, now 0.50 ms, timed waits fine) -> FAILED Failed to load module: D:\Road of Death\libs\libSceXml.prx GetLastError: 126 - The specified module could not be found.
oneandonlydean commented 2026-10-10 09:28:40 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-10T09:28:40Z.


libSceXml is not on main yet. Please post the output of python3 tools/import_audit.py app.registry.json --libs build/core/libs/libs --modules <game>/sce_module from one current main build. It lists the libSceXml functions PPSA07286 imports and anything else that is missing.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6096127197 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2591#issuecomment-6096127197). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-10T09:28:40Z. --- `libSceXml` is not on main yet. Please post the output of `python3 tools/import_audit.py app.registry.json --libs build/core/libs/libs --modules <game>/sce_module` from one current main build. It lists the `libSceXml` functions PPSA07286 imports and anything else that is missing.
LightStorm72 commented 2026-10-10 09:34:51 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LightStorm72 on 2026-10-10T09:34:51Z.


1182 references, 1119 unique imports
implemented 513 imports 513 references
stub 27 imports 27 references
absent 2 imports 2 references
module 577 imports 640 references

Absent: no built library exports these, so the loader fails (2)
[libSceHttp.prx]
7WcNoAI9Zcw
gcUjwU3fa0M

Stub: exported but throws when called (27)
[libSceAgc.prx]
0o3VDdtA6nM sceAgcDcbSetIndexIndirectArgs
7Wa3aeJgeVU sceAgcBranchPatchSetThenTarget_0300
AAeX-U5-P3M sceAgcGetDefaultCxStateFlat
AFIh8SQkYlQ sceAgcDcbSetIndexIndirectArgsGetSize
FcgdDM3MB+k sceAgcAcbSetWorkloadStreamInactive
FneFypEDRgY sceAgcDcbSetWorkloadStreamInactive
GPbUp9jXQa8 sceAgcAcbWaitUntilSafeForRendering
LFSPFmGc9Hg sceAgcDcbSetWorkloadsActive
P1CugZ99Uzc sceAgcDcbEndOcclusionQueryGetSize
T6xuVw0KUJo sceAgcDebugRaiseException
ebixW91gpPw sceAgcAcbSetFlip
gQkqkLttcpw sceAgcAcbAtomicGds_0900
hEK26Wdny6s sceAgcDcbSetWorkloadComplete
k0E7vkgqAuE sceAgcUpdateInterpolantMapping_0100
ms1xVoZ-Vwc sceAgcDcbBeginOcclusionQueryGetSize
opR1JeJZCBU sceAgcAcbSetWorkloadComplete
rP5xLdOf26k sceAgcBranchPatchSetElseTarget_0300
rVOmPz2RBlg sceAgcAcbSetWorkloadsActive
zARR5aCmkoY sceAgcDcbA_zARR5aCmkoY
[libSceAgcDriver.prx]
FOwvmNlFLjM sceAgcDriverRequestCaptureStop
SAfhzJPcjuk sceAgcDriverRequestCaptureStart
Xq5WmbwPTnQ sceAgcDriverTriggerCapture
rJUyMrDdxJg sceAgcDriverGetShaderDebuggingStatus
[libSceAudioIn.prx]
5NE8Sjc7VC8 sceAudioInOpen
[libSceHttp.prx]
qISjDHrxONc sceHttpWaitRequest
[libSceNpSessionSignaling.prx]
n1fn2KFeLDA sceNpSessionSignalingGetConnectionStatus
[libSceSsl.prx]
kLB5aGoUJXg sceSslGetPem

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6096173944 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2591#issuecomment-6096173944). Originally posted by [LightStorm72](https://github.com/LightStorm72) on 2026-10-10T09:34:51Z. --- 1182 references, 1119 unique imports implemented 513 imports 513 references stub 27 imports 27 references absent 2 imports 2 references module 577 imports 640 references Absent: no built library exports these, so the loader fails (2) [libSceHttp.prx] 7WcNoAI9Zcw gcUjwU3fa0M Stub: exported but throws when called (27) [libSceAgc.prx] 0o3VDdtA6nM sceAgcDcbSetIndexIndirectArgs 7Wa3aeJgeVU sceAgcBranchPatchSetThenTarget_0300 AAeX-U5-P3M sceAgcGetDefaultCxStateFlat AFIh8SQkYlQ sceAgcDcbSetIndexIndirectArgsGetSize FcgdDM3MB+k sceAgcAcbSetWorkloadStreamInactive FneFypEDRgY sceAgcDcbSetWorkloadStreamInactive GPbUp9jXQa8 sceAgcAcbWaitUntilSafeForRendering LFSPFmGc9Hg sceAgcDcbSetWorkloadsActive P1CugZ99Uzc sceAgcDcbEndOcclusionQueryGetSize T6xuVw0KUJo sceAgcDebugRaiseException ebixW91gpPw sceAgcAcbSetFlip gQkqkLttcpw sceAgcAcbAtomicGds_0900 hEK26Wdny6s sceAgcDcbSetWorkloadComplete k0E7vkgqAuE sceAgcUpdateInterpolantMapping_0100 ms1xVoZ-Vwc sceAgcDcbBeginOcclusionQueryGetSize opR1JeJZCBU sceAgcAcbSetWorkloadComplete rP5xLdOf26k sceAgcBranchPatchSetElseTarget_0300 rVOmPz2RBlg sceAgcAcbSetWorkloadsActive zARR5aCmkoY sceAgcDcbA_zARR5aCmkoY [libSceAgcDriver.prx] FOwvmNlFLjM sceAgcDriverRequestCaptureStop SAfhzJPcjuk sceAgcDriverRequestCaptureStart Xq5WmbwPTnQ sceAgcDriverTriggerCapture rJUyMrDdxJg sceAgcDriverGetShaderDebuggingStatus [libSceAudioIn.prx] 5NE8Sjc7VC8 sceAudioInOpen [libSceHttp.prx] qISjDHrxONc sceHttpWaitRequest [libSceNpSessionSignaling.prx] n1fn2KFeLDA sceNpSessionSignalingGetConnectionStatus [libSceSsl.prx] kLB5aGoUJXg sceSslGetPem
LightStorm72 commented 2026-10-10 10:08:19 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LightStorm72 on 2026-10-10T10:08:19Z.


@oneandonlydean I updated the AnyPS5 build to latest and this is what I got, still same error and I provided the output of the Python command.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6096417813 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2591#issuecomment-6096417813). Originally posted by [LightStorm72](https://github.com/LightStorm72) on 2026-10-10T10:08:19Z. --- @oneandonlydean I updated the AnyPS5 build to latest and this is what I got, still same error and I provided the output of the Python command.
Silverash-i8 commented 2026-10-10 17:37:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Silverash-i8 on 2026-10-10T17:37:13Z.


Your import audit shows something useful: nothing in the game imports from libSceXml at all. It's only in the executable's DT_NEEDED list. The Windows start-up stub loads every needed library and stops at the first one that's missing, even when nothing could ever bind to it. #2776 hits the same wall with Party.prx.

I have a branch that lets the start-up carry on in exactly that case: Silverash-i8/AnyPS5-fork:fix/windows-skip-missing-unused-library, one commit ce0b99ac on main 57f96fd2.

WindowsEntryStubBuilder already works out, for every import, which libraries it may be searched in. If a host library isn't in any of those lists and LoadLibraryExA fails with 126 (module not found), the stub now prints

...\libs\libSceXml.prx -> not found; nothing is imported from it, continuing without it

and moves on with a null handle, which nothing reads. Anything else still stops as before: a missing library that something imports from, a load that fails with any other error, or a missing guest module. (126 also covers a library that exists but whose own dependency is missing; when nothing imports from it, that's skipped too.)

Tested on Windows 11, WinLibs GCC 15.2.0 r7:

  • New case in windows_import_modules: an executable that needs unused.prx with nothing imported from it. On main it stops with Failed to load module: ...\unused.prx / GetLastError: 126, the same as your log. With the branch it prints the line above and runs to the expected exit code. The existing missing-dependency case, where the missing library is imported from, still fails the same way.
  • Full ctest -j6: 709/709 pass (5 skips), and tools/check_conventions.py passes.

One thing to expect if you try it: your audit also lists two absent libSceHttp imports (7WcNoAI9Zcw, gcUjwU3fa0M), so the next stop will probably be unresolved ELF import for one of those, not this. Linux output isn't changed by this; there the needed list goes to the system loader.

AI-assisted (Claude Code); I ran everything above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6100332830 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2591#issuecomment-6100332830). Originally posted by [Silverash-i8](https://github.com/Silverash-i8) on 2026-10-10T17:37:13Z. --- Your import audit shows something useful: nothing in the game imports from `libSceXml` at all. It's only in the executable's `DT_NEEDED` list. The Windows start-up stub loads every needed library and stops at the first one that's missing, even when nothing could ever bind to it. #2776 hits the same wall with `Party.prx`. I have a branch that lets the start-up carry on in exactly that case: [`Silverash-i8/AnyPS5-fork:fix/windows-skip-missing-unused-library`](https://github.com/Silverash-i8/AnyPS5-fork/tree/fix/windows-skip-missing-unused-library), one commit `ce0b99ac` on `main` `57f96fd2`. `WindowsEntryStubBuilder` already works out, for every import, which libraries it may be searched in. If a host library isn't in any of those lists and `LoadLibraryExA` fails with 126 (module not found), the stub now prints ``` ...\libs\libSceXml.prx -> not found; nothing is imported from it, continuing without it ``` and moves on with a null handle, which nothing reads. Anything else still stops as before: a missing library that something imports from, a load that fails with any other error, or a missing guest module. (126 also covers a library that exists but whose own dependency is missing; when nothing imports from it, that's skipped too.) Tested on Windows 11, WinLibs GCC 15.2.0 r7: - New case in `windows_import_modules`: an executable that needs `unused.prx` with nothing imported from it. On `main` it stops with `Failed to load module: ...\unused.prx` / `GetLastError: 126`, the same as your log. With the branch it prints the line above and runs to the expected exit code. The existing `missing-dependency` case, where the missing library is imported from, still fails the same way. - Full `ctest -j6`: 709/709 pass (5 skips), and `tools/check_conventions.py` passes. One thing to expect if you try it: your audit also lists two absent `libSceHttp` imports (`7WcNoAI9Zcw`, `gcUjwU3fa0M`), so the next stop will probably be `unresolved ELF import` for one of those, not this. Linux output isn't changed by this; there the needed list goes to the system loader. AI-assisted (Claude Code); I ran everything above on my machine.
xXPBSXx commented 2026-10-10 19:45:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-10T19:45:42Z.


Tested ce0b99ac from the branch above on two more titles that list a library they import nothing from: Record of Lodoss War (PPSA05347, needs libSceXml.prx) and Resident Evil 4 (PPSA07411, needs Party.prx, see #2776). As it stands, the commit does not change the start-up for either of them.

On Lodoss the import audit (executable and both modules, all registries) shows 1218 unique imports and 0 absent, and no import names libSceXml. With ce0b99ac applied and the relinker rebuilt, app.exe contains the new message but the start still stops at:

Failed to load module: ...\libs\libSceXml.prx
GetLastError: 126

The reason is in WindowsEntryStubBuilder::Build. A library is marked as used for every index in an import's search list, and an import whose Library is empty is searched in all libraries (import.Library.empty() || name == import.Library || guestName). All titles I looked at have such imports (registry entries with "library": ""): 59 in Lodoss's executable plus 37 in libSceNpCppWebApi, 118 in RE4, 132 in Returnal. So every host library counts as used and the new branch is never taken.

A one-line change on top of the commit, counting a library as used only for imports that name one:

-            imported[index] = true;
+            if (!import.Library.empty()) imported[index] = true;

With it, Lodoss prints ...\libs\libSceXml.prx -> not found; nothing is imported from it, continuing without it, runs the title's own code (save data mount, trophy set-up) and stops later at an unrelated point: AGC graphics: polygon mode, depth bias or nonstandard rasterization is unsupported (register 0x205 = 0x00010244). RE4 prints the same message for Party.prx (without any placeholder library in libs) and then stops at unresolved ELF import 84MgU4MMTLQ from libSceNet.prx, which is the export from #1808.

With the one-line change on top of ce0b99ac, the 8 Windows relinker tests I ran pass (windows_import_modules with the new missing-unused-dependency case, windows_dependency_diagnostics, windows_working_directory, windows_address_space, windows_bss, windows_gui, windows_exceptions, windows_diagnostic_fixture_isolation), and tools/check_conventions.py --base upstream/main passes. I did not run the full ctest, and the test case in the commit has no import with an empty library, so it does not cover this. I did not check whether an unnamed import could legitimately need the skipped library (if one does, it ends as unresolved ELF import, as before).

Windows 10 (19045), NVIDIA GeForce RTX 4080 SUPER, MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, on main 57f96fd2 plus #2872, #2658 and ce0b99ac. Dumps from my own digital copies; no game files shared. AI-assisted.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6101491669 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2591#issuecomment-6101491669). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-10T19:45:42Z. --- Tested `ce0b99ac` from the branch above on two more titles that list a library they import nothing from: Record of Lodoss War (PPSA05347, needs `libSceXml.prx`) and Resident Evil 4 (PPSA07411, needs `Party.prx`, see #2776). As it stands, the commit does not change the start-up for either of them. On Lodoss the import audit (executable and both modules, all registries) shows 1218 unique imports and 0 absent, and no import names `libSceXml`. With `ce0b99ac` applied and the relinker rebuilt, `app.exe` contains the new message but the start still stops at: ``` Failed to load module: ...\libs\libSceXml.prx GetLastError: 126 ``` The reason is in `WindowsEntryStubBuilder::Build`. A library is marked as used for every index in an import's search list, and an import whose `Library` is empty is searched in all libraries (`import.Library.empty() || name == import.Library || guestName`). All titles I looked at have such imports (registry entries with `"library": ""`): 59 in Lodoss's executable plus 37 in `libSceNpCppWebApi`, 118 in RE4, 132 in Returnal. So every host library counts as used and the new branch is never taken. A one-line change on top of the commit, counting a library as used only for imports that name one: ```diff - imported[index] = true; + if (!import.Library.empty()) imported[index] = true; ``` With it, Lodoss prints `...\libs\libSceXml.prx -> not found; nothing is imported from it, continuing without it`, runs the title's own code (save data mount, trophy set-up) and stops later at an unrelated point: `AGC graphics: polygon mode, depth bias or nonstandard rasterization is unsupported (register 0x205 = 0x00010244)`. RE4 prints the same message for `Party.prx` (without any placeholder library in `libs`) and then stops at `unresolved ELF import 84MgU4MMTLQ from libSceNet.prx`, which is the export from #1808. With the one-line change on top of `ce0b99ac`, the 8 Windows relinker tests I ran pass (`windows_import_modules` with the new `missing-unused-dependency` case, `windows_dependency_diagnostics`, `windows_working_directory`, `windows_address_space`, `windows_bss`, `windows_gui`, `windows_exceptions`, `windows_diagnostic_fixture_isolation`), and `tools/check_conventions.py --base upstream/main` passes. I did not run the full `ctest`, and the test case in the commit has no import with an empty library, so it does not cover this. I did not check whether an unnamed import could legitimately need the skipped library (if one does, it ends as `unresolved ELF import`, as before). Windows 10 (19045), NVIDIA GeForce RTX 4080 SUPER, MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, on `main` `57f96fd2` plus #2872, #2658 and `ce0b99ac`. Dumps from my own digital copies; no game files shared. AI-assisted.
Silverash-i8 commented 2026-10-10 19:55:48 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Silverash-i8 on 2026-10-10T19:55:48Z.


@xXPBSXx thank you, that's a real hole in my commit, and it's great that you tested it on Lodoss and RE4.

I applied your one-liner on the branch (49cae1f7, credited to you) and added a case with an unnamed import to windows_import_modules. Then the full relinker tests turned up a conflict, so I've reverted it again (7939cd1e) and the branch is back to ce0b99ac for now.

The conflict is in guest_module_identity, in the case that requests libGuest.xyz with an import declared from module libGuest. ImportModule can't match libGuest to libGuest.xyz, so that import's Library is empty too. The test expects the start to stop with Failed to load module:. With the one-liner, libGuest.xyz is skipped as unused and the import binds to renamed.prx, the guest module that declares libGuest, and the run exits 22. That test seems to be there exactly to stop a declared-but-unmatched module from binding somewhere else, so I don't want to change it.

So an empty Library covers two different things:

  1. A symbol with no module ID at all (ImportModule returns early for a symbol without #).
  2. A symbol whose declared module matches no needed library.

Case 2 can belong to the missing library, so it should keep counting against every library. Case 1 never named one, so ignoring it for this check seems safe. Could you check which kind the unnamed imports in Lodoss and RE4 are? In the registry, do their symbols carry a #lib#module suffix? If they're all case 1, I'll carry that distinction through to PeImport and only skip when every unnamed import is case 1, and both your titles and the identity test should be fine.

AI-assisted (Claude Code); I ran the tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6101576841 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2591#issuecomment-6101576841). Originally posted by [Silverash-i8](https://github.com/Silverash-i8) on 2026-10-10T19:55:48Z. --- @xXPBSXx thank you, that's a real hole in my commit, and it's great that you tested it on Lodoss and RE4. I applied your one-liner on the branch (`49cae1f7`, credited to you) and added a case with an unnamed import to `windows_import_modules`. Then the full relinker tests turned up a conflict, so I've reverted it again (`7939cd1e`) and the branch is back to `ce0b99ac` for now. The conflict is in `guest_module_identity`, in the case that requests `libGuest.xyz` with an import declared from module `libGuest`. `ImportModule` can't match `libGuest` to `libGuest.xyz`, so that import's `Library` is empty too. The test expects the start to stop with `Failed to load module:`. With the one-liner, `libGuest.xyz` is skipped as unused and the import binds to `renamed.prx`, the guest module that declares `libGuest`, and the run exits 22. That test seems to be there exactly to stop a declared-but-unmatched module from binding somewhere else, so I don't want to change it. So an empty `Library` covers two different things: 1. A symbol with no module ID at all (`ImportModule` returns early for a symbol without `#`). 2. A symbol whose declared module matches no needed library. Case 2 can belong to the missing library, so it should keep counting against every library. Case 1 never named one, so ignoring it for this check seems safe. Could you check which kind the unnamed imports in Lodoss and RE4 are? In the registry, do their symbols carry a `#lib#module` suffix? If they're all case 1, I'll carry that distinction through to `PeImport` and only skip when every unnamed import is case 1, and both your titles and the identity test should be fine. AI-assisted (Claude Code); I ran the tests above on my machine.
xXPBSXx commented 2026-10-10 21:07:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-10T21:07:01Z.


@Silverash-i8 thanks for testing it and for reverting cleanly. I checked which kind the unnamed imports are, in four titles (Lodoss, RE4, PRAGMATA PPSA02530, Returnal).

In the executables they are all your case 2: every registry entry with an empty library in app.registry.json carries a #lib#module suffix (Lodoss 59, RE4 118, Returnal 95, PRAGMATA 124). Case 1 (no # at all) only appears in modules (libSceNpCppWebApi, 37 entries in several titles, and libfmod, 16), never in an executable. So a rule that skips only when every unnamed import is case 1 would not change the start of any of these titles.

What the suffixes name. The two characters are the library ID and the module ID in the alphabet A-Za-z0-9+- (A=0 ... Z=25 ...). I decoded them against the ELF's 0x61000049 list (library IDs, names at an offset in the dynlib segment) and 0x61000045 list (module IDs). The list tags are read from this dump format only and I did not check them against any other title or documentation. For Lodoss:

suffix imports library module
#Y#Z 34 libSceJson2 libSceJson
#e#f 12 libSceAvPlayer libSceAvPlayer
#Q#R 7 libSceSaveDataDialog.native libSceSaveDataDialog
#L#M 6 libSceMsgDialog.native libSceMsgDialog

RE4 and PRAGMATA add libSceAjm, libSceAppContent (module libSceAppContentUtil) and, for PRAGMATA, libScePsml; Returnal has the same kind. Every one of these library names exists as a file in build/core/libs/libs (libSceJson2.prx, libSceAjm.prx, libSceAvPlayer.prx, libSceMsgDialog.native.prx, libSceSaveDataDialog.native.prx, libSceAppContent.prx, libScePsml.prx). The module names libSceJson and libSceAppContentUtil match no file, which looks like why ImportModule leaves Library empty. None of the suffixes names libSceXml or Party.

So for the unnamed imports of these titles the suffix is enough to say that they do not belong to the missing library. A rule in your direction that fits both this and guest_module_identity could be: an unnamed import with a suffix counts against a missing library only when its library or module name equals that library's name (libGuest vs libGuest.xyz would then still count, and libSceJson2 would not count against libSceXml). I have not written or tested that; I am only reporting what the data shows. If you push a version, I can run it against these four titles.

Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7). No game files shared. AI-assisted.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6102181753 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2591#issuecomment-6102181753). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-10T21:07:01Z. --- @Silverash-i8 thanks for testing it and for reverting cleanly. I checked which kind the unnamed imports are, in four titles (Lodoss, RE4, PRAGMATA PPSA02530, Returnal). **In the executables they are all your case 2:** every registry entry with an empty `library` in `app.registry.json` carries a `#lib#module` suffix (Lodoss 59, RE4 118, Returnal 95, PRAGMATA 124). Case 1 (no `#` at all) only appears in modules (`libSceNpCppWebApi`, 37 entries in several titles, and `libfmod`, 16), never in an executable. So a rule that skips only when every unnamed import is case 1 would not change the start of any of these titles. **What the suffixes name.** The two characters are the library ID and the module ID in the alphabet `A-Za-z0-9+-` (`A`=0 ... `Z`=25 ...). I decoded them against the ELF's `0x61000049` list (library IDs, names at an offset in the dynlib segment) and `0x61000045` list (module IDs). The list tags are read from this dump format only and I did not check them against any other title or documentation. For Lodoss: | suffix | imports | library | module | |---|---|---|---| | `#Y#Z` | 34 | libSceJson2 | libSceJson | | `#e#f` | 12 | libSceAvPlayer | libSceAvPlayer | | `#Q#R` | 7 | libSceSaveDataDialog.native | libSceSaveDataDialog | | `#L#M` | 6 | libSceMsgDialog.native | libSceMsgDialog | RE4 and PRAGMATA add `libSceAjm`, `libSceAppContent` (module `libSceAppContentUtil`) and, for PRAGMATA, `libScePsml`; Returnal has the same kind. Every one of these library names exists as a file in `build/core/libs/libs` (`libSceJson2.prx`, `libSceAjm.prx`, `libSceAvPlayer.prx`, `libSceMsgDialog.native.prx`, `libSceSaveDataDialog.native.prx`, `libSceAppContent.prx`, `libScePsml.prx`). The module names `libSceJson` and `libSceAppContentUtil` match no file, which looks like why `ImportModule` leaves `Library` empty. **None of the suffixes names `libSceXml` or `Party`.** So for the unnamed imports of these titles the suffix is enough to say that they do not belong to the missing library. A rule in your direction that fits both this and `guest_module_identity` could be: an unnamed import with a suffix counts against a missing library only when its library or module name equals that library's name (`libGuest` vs `libGuest.xyz` would then still count, and `libSceJson2` would not count against `libSceXml`). I have not written or tested that; I am only reporting what the data shows. If you push a version, I can run it against these four titles. Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7). No game files shared. AI-assisted.
Silverash-i8 commented 2026-10-10 21:16:12 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Silverash-i8 on 2026-10-10T21:16:12Z.


@xXPBSXx that decode was exactly what was needed, thanks. I've implemented your rule.

Branch: Silverash-i8/AnyPS5-fork:fix/windows-start-without-unused-library, two commits on main 57f96fd2: ce0b99ac (the skip itself) and 01e65cfb (your rule). It's the same tree as the tip of the old branch, without the revert pair in the history.

What 01e65cfb does:

  • When ImportModule can't match an import's declared module to a needed library, the relinker now keeps that declared module name. It does this for the executable and for each guest module (new DeclaredImportModule helper, split out of ImportModule without changing what it returns).
  • The start-up stub counts a host library as imported from when a named import resolves to it, as before, or when its file name up to the first dot matches one of those declared module names, ignoring case. So libGuest still keeps a missing libGuest.xyz required, while libSceJson doesn't count against libSceXml.prx.
  • Imports with no module ID declare nothing and count against no library.

I compared module names rather than the library IDs you decoded from 0x61000049, since the relinker only reads the module list today. For your four titles that gives the same answer: none of the module names (libSceJson, libSceAvPlayer, libSceAppContentUtil and so on) matches libSceXml or Party.

Tested on Windows 11, WinLibs GCC 15.2.0 r7:

  • windows_import_modules now covers a missing unused library next to a named import, an import with no module ID, and an import declared from libSceJson that matches no library. Both new cases fail on ce0b99ac alone and pass with 01e65cfb.
  • guest_module_identity passes, including the libGuest.xyz case.
  • Full ctest -j6: 709/709. tools/check_conventions.py passes.

If you can run it against Lodoss, RE4, PRAGMATA and Returnal like you offered, that would be great.

AI-assisted (Claude Code); I ran everything above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6102259200 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2591#issuecomment-6102259200). Originally posted by [Silverash-i8](https://github.com/Silverash-i8) on 2026-10-10T21:16:12Z. --- @xXPBSXx that decode was exactly what was needed, thanks. I've implemented your rule. Branch: [`Silverash-i8/AnyPS5-fork:fix/windows-start-without-unused-library`](https://github.com/Silverash-i8/AnyPS5-fork/tree/fix/windows-start-without-unused-library), two commits on `main` `57f96fd2`: `ce0b99ac` (the skip itself) and `01e65cfb` (your rule). It's the same tree as the tip of the old branch, without the revert pair in the history. What `01e65cfb` does: - When `ImportModule` can't match an import's declared module to a needed library, the relinker now keeps that declared module name. It does this for the executable and for each guest module (new `DeclaredImportModule` helper, split out of `ImportModule` without changing what it returns). - The start-up stub counts a host library as imported from when a named import resolves to it, as before, or when its file name up to the first dot matches one of those declared module names, ignoring case. So `libGuest` still keeps a missing `libGuest.xyz` required, while `libSceJson` doesn't count against `libSceXml.prx`. - Imports with no module ID declare nothing and count against no library. I compared module names rather than the library IDs you decoded from `0x61000049`, since the relinker only reads the module list today. For your four titles that gives the same answer: none of the module names (`libSceJson`, `libSceAvPlayer`, `libSceAppContentUtil` and so on) matches `libSceXml` or `Party`. Tested on Windows 11, WinLibs GCC 15.2.0 r7: - `windows_import_modules` now covers a missing unused library next to a named import, an import with no module ID, and an import declared from `libSceJson` that matches no library. Both new cases fail on `ce0b99ac` alone and pass with `01e65cfb`. - `guest_module_identity` passes, including the `libGuest.xyz` case. - Full `ctest -j6`: 709/709. `tools/check_conventions.py` passes. If you can run it against Lodoss, RE4, PRAGMATA and Returnal like you offered, that would be great. AI-assisted (Claude Code); I ran everything above on my machine.
xXPBSXx commented 2026-10-10 21:26:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-10T21:26:06Z.


@Silverash-i8 I ran 01e65cfb (on top of ce0b99ac, fetched from your branch) against the four titles. It works for the two that need it and changes nothing for the others.

  • Record of Lodoss War (PPSA05347): ...\libs\libSceXml.prx -> not found; nothing is imported from it, continuing without it, then the title runs its own code.
  • Resident Evil 4 (PPSA07411): ...\libs\Party.prx -> not found; nothing is imported from it, continuing without it, with no placeholder library in libs. It then stops at sce::Json::InitParameter2::setSpecialFloatFormatType (#2776).
  • PRAGMATA (PPSA02530): no library is skipped. It still faults in its first malloc (#3043), which is a separate problem.
  • Returnal (PPSA01285): no library is skipped. It still stops at unresolved ELF import 2pEUrnXGxys from libSceCdlgG2P.prx (the export from #2872), as before.

On your branch the 19 relinker tests I ran pass (windows_*, guest_module_*, guest_needed_*, guest_offline_imports, amd64_only_*), including guest_module_identity, and tools/check_conventions.py passes. I did not run the full ctest. Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7).

I wrote the same rule locally before I saw your branch. It only carried the declared module name for the executable, not for guest modules, so yours is the better version and I am not pushing mine. Thanks for crediting the decode.

No game files shared. AI-assisted.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6102345486 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2591#issuecomment-6102345486). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-10T21:26:06Z. --- @Silverash-i8 I ran `01e65cfb` (on top of `ce0b99ac`, fetched from your branch) against the four titles. It works for the two that need it and changes nothing for the others. - **Record of Lodoss War (PPSA05347):** `...\libs\libSceXml.prx -> not found; nothing is imported from it, continuing without it`, then the title runs its own code. - **Resident Evil 4 (PPSA07411):** `...\libs\Party.prx -> not found; nothing is imported from it, continuing without it`, with no placeholder library in `libs`. It then stops at `sce::Json::InitParameter2::setSpecialFloatFormatType` (#2776). - **PRAGMATA (PPSA02530):** no library is skipped. It still faults in its first `malloc` (#3043), which is a separate problem. - **Returnal (PPSA01285):** no library is skipped. It still stops at `unresolved ELF import 2pEUrnXGxys` from `libSceCdlgG2P.prx` (the export from #2872), as before. On your branch the 19 relinker tests I ran pass (`windows_*`, `guest_module_*`, `guest_needed_*`, `guest_offline_imports`, `amd64_only_*`), including `guest_module_identity`, and `tools/check_conventions.py` passes. I did not run the full `ctest`. Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7). I wrote the same rule locally before I saw your branch. It only carried the declared module name for the executable, not for guest modules, so yours is the better version and I am not pushing mine. Thanks for crediting the decode. No game files shared. AI-assisted.
Silverash-i8 commented 2026-10-10 21:30:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Silverash-i8 on 2026-10-10T21:30:55Z.


@xXPBSXx thanks for running all four, that's exactly the check this needed: the two titles that list a library they don't import from get past it, and the two that don't are unchanged.

So for the maintainers, fix/windows-start-without-unused-library (ce0b99ac + 01e65cfb on main 57f96fd2) should be ready for review. It fixes the libSceXml.prx stop here and the Party.prx stop in #2776. It's 709/709 in a full ctest on Windows, and Record of Lodoss War and Resident Evil 4 start with it. The intake gate closes PRs from me for now, so I'm leaving it as a branch; happy to open a PR or rebase if that's more convenient.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6102385658 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2591#issuecomment-6102385658). Originally posted by [Silverash-i8](https://github.com/Silverash-i8) on 2026-10-10T21:30:55Z. --- @xXPBSXx thanks for running all four, that's exactly the check this needed: the two titles that list a library they don't import from get past it, and the two that don't are unchanged. So for the maintainers, [`fix/windows-start-without-unused-library`](https://github.com/Silverash-i8/AnyPS5-fork/tree/fix/windows-start-without-unused-library) (`ce0b99ac` + `01e65cfb` on `main` `57f96fd2`) should be ready for review. It fixes the `libSceXml.prx` stop here and the `Party.prx` stop in #2776. It's 709/709 in a full `ctest` on Windows, and Record of Lodoss War and Resident Evil 4 start with it. The intake gate closes PRs from me for now, so I'm leaving it as a branch; happy to open a PR or rebase if that's more convenient. AI-assisted (Claude Code).
LightStorm72 commented 2026-10-11 06:25:49 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LightStorm72 on 2026-10-11T06:25:49Z.


Update: with the start-without-unused-library branch (01e65cfb), the libSceXml stop is gone on Road of Death, and the title now runs.

The two absent libSceHttp imports from the audit are
7WcNoAI9Zcw = sceHttpsFreeCaList and gcUjwU3fa0M = sceHttpsGetCaList.
I derived the names by hashing candidate sceHttp names (SHA-1 with the PS NID salt). The same method gives
qISjDHrxONc = sceHttpWaitRequest, which matches the stub reported in the audit.

I added them locally as stubs in Export.cpp: sceHttpsGetCaList returns ERROR_NETWORK without writing to the
list (I do not know the SceHttpsCaList layout), and sceHttpsFreeCaList returns 0. With them, the title gets
past the loader and runs its main loop. The signatures are from memory of the PS4 SDK, so please verify them.

Further stops after this are tracked in #3163 (AGC register 0x205), with a fix that works for this title.

AI-assisted (Claude).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6106228439 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2591#issuecomment-6106228439). Originally posted by [LightStorm72](https://github.com/LightStorm72) on 2026-10-11T06:25:49Z. --- Update: with the start-without-unused-library branch (`01e65cfb`), the libSceXml stop is gone on Road of Death, and the title now runs. The two absent `libSceHttp` imports from the audit are `7WcNoAI9Zcw` = `sceHttpsFreeCaList` and `gcUjwU3fa0M` = `sceHttpsGetCaList`. I derived the names by hashing candidate sceHttp names (SHA-1 with the PS NID salt). The same method gives `qISjDHrxONc` = `sceHttpWaitRequest`, which matches the stub reported in the audit. I added them locally as stubs in `Export.cpp`: `sceHttpsGetCaList` returns `ERROR_NETWORK` without writing to the list (I do not know the `SceHttpsCaList` layout), and `sceHttpsFreeCaList` returns 0. With them, the title gets past the loader and runs its main loop. The signatures are from memory of the PS4 SDK, so please verify them. Further stops after this are tracked in #3163 (AGC register 0x205), with a fix that works for this title. AI-assisted (Claude).
Silverash-i8 commented 2026-10-11 06:39:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Silverash-i8 on 2026-10-11T06:39:57Z.


@LightStorm72 great, thanks for testing it. That makes Road of Death the third title the branch gets past start-up, after Lodoss and RE4.

On the two Https stubs, I checked them against shadPS4's libSceHttp (src/core/libraries/network/http.cpp / http.h):

  • Names: its export table registers 7WcNoAI9Zcw as sceHttpsFreeCaList and gcUjwU3fa0M as sceHttpsGetCaList, so your hashing matches.
  • Signatures: int sceHttpsGetCaList(int httpCtxId, OrbisHttpsCaList* list) and int sceHttpsFreeCaList(int libhttpCtxId, OrbisHttpsCaList* caList).
  • Layout: OrbisHttpsCaList is OrbisSslCaList, which shadPS4 declares as { void* certs; int certsNum; }.
  • Behaviour there: sceHttpsGetCaList doesn't fail. After checking init, the context ID and a null pointer, it sets list->certsNum = 0 and returns OK (an empty CA list). sceHttpsFreeCaList does the same checks, sets certsNum = 0 and returns OK.

So instead of ERROR_NETWORK, returning an empty list (certsNum = 0, return 0) might be closer to what titles expect, since with no TLS there are no CA certificates to list. With your title running past it either way, that's your call; I'd just note the source in TechnicalDebt if you put it on a branch.

AI-assisted (Claude Code); I read the shadPS4 source for the above.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6106326608 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2591#issuecomment-6106326608). Originally posted by [Silverash-i8](https://github.com/Silverash-i8) on 2026-10-11T06:39:57Z. --- @LightStorm72 great, thanks for testing it. That makes Road of Death the third title the branch gets past start-up, after Lodoss and RE4. On the two Https stubs, I checked them against shadPS4's `libSceHttp` (`src/core/libraries/network/http.cpp` / `http.h`): - **Names:** its export table registers `7WcNoAI9Zcw` as `sceHttpsFreeCaList` and `gcUjwU3fa0M` as `sceHttpsGetCaList`, so your hashing matches. - **Signatures:** `int sceHttpsGetCaList(int httpCtxId, OrbisHttpsCaList* list)` and `int sceHttpsFreeCaList(int libhttpCtxId, OrbisHttpsCaList* caList)`. - **Layout:** `OrbisHttpsCaList` is `OrbisSslCaList`, which shadPS4 declares as `{ void* certs; int certsNum; }`. - **Behaviour there:** `sceHttpsGetCaList` doesn't fail. After checking init, the context ID and a null pointer, it sets `list->certsNum = 0` and returns OK (an empty CA list). `sceHttpsFreeCaList` does the same checks, sets `certsNum = 0` and returns OK. So instead of `ERROR_NETWORK`, returning an empty list (`certsNum = 0`, return 0) might be closer to what titles expect, since with no TLS there are no CA certificates to list. With your title running past it either way, that's your call; I'd just note the source in TechnicalDebt if you put it on a branch. AI-assisted (Claude Code); I read the shadPS4 source for the above.
LightStorm72 commented 2026-10-11 06:58:40 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LightStorm72 on 2026-10-11T06:58:40Z.


@Silverash-i8
Thanks for checking this against shadPS4. I changed both stubs to return an empty CA list as suggested: sceHttpsGetCaList sets certs = nullptr and certsNum = 0 and returns 0, and sceHttpsFreeCaList does the same. A null ca_list returns ERROR_INVALID_VALUE in both.

After rebuilding and relinking, Road of Death (PPSA07286) still gets past the loader and runs as before.

AI-assisted (Claude).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6106457926 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2591#issuecomment-6106457926). Originally posted by [LightStorm72](https://github.com/LightStorm72) on 2026-10-11T06:58:40Z. --- @Silverash-i8 Thanks for checking this against shadPS4. I changed both stubs to return an empty CA list as suggested: `sceHttpsGetCaList` sets `certs = nullptr` and `certsNum = 0` and returns 0, and `sceHttpsFreeCaList` does the same. A null `ca_list` returns `ERROR_INVALID_VALUE` in both. After rebuilding and relinking, Road of Death (PPSA07286) still gets past the loader and runs as before. AI-assisted (Claude).
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#2591
No description provided.