feat(prx): unknown loader tripwires for TLOU #338
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/338"
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 Pouare514 on 2026-10-02T09:39:16Z.
What
Raw-NID exports for 14 loader unknowns hit while booting TLOU Part I (Net, libc, SystemService, Http, Http2, Voice, Trophy2, libkernel, SessionSignaling), following the Agc unknown precedent. Unknown names/signatures recorded in TechnicalDebt. Anything actually called throws with its name instead of failing the load with an unnamed import.
Tested
Windows 11, MinGW GCC 15.2.0. Verified all 14 NIDs present in the built .prx\ files. Full \ctest -E agc_driver_graphics|guest_rendering_wait: 93/93.
Checklist
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-02T11:37:51Z.
Progress report (
9651ec9→20cbc8e)📉 System libraries: 78.89% (-0.25%, +10 declared functions)
🆕 10 declared as stubs
sceHttpParseResponseHeadersceHttp2GetMemoryPoolStatssceNetGetMemoryPoolStatssceNpSessionSignalingGetConnectionStatisticssceNpSessionSignalingGetMemoryInfosceNpTrophy2UnregisterUnlockCallbacksceSystemServiceDisableMediaPlaysceSystemServiceReenableMediaPlaysceVoiceSetMuteFlagsnwprintf_sImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-04T05:41:49Z.
Thanks for these. This needs a rebase: it conflicts with main in libSceHttp, libSceNpSessionSignaling,
libkernel/Unimplemented.cppand TechnicalDebt.md, and rWSuTWY2JN0 (libc/Export.cpp) and teiItL2boFw (libkernel/Unimplemented.cpp) are exported on main already, so those two can be dropped. Also, 0hlfW1O4Aa4 is a libc export here but #407 adds the same NID to libSceAmpr. Do you know which library the title imports it from?Imported from boykopovar/AnyPS5. Originally posted by Pouare514 on 2026-10-04T14:22:50Z.
Done, rebased: dropped rWSuTWY2JN0 and teiItL2boFw (on main), hPTXo3bICzI renumbered to sceHttpUnknown02, rMyh97BU5pY to sceNetUnknown01. Two findings while rebasing: GlelR9EEeck computes to the same NID as cbrtf (already implemented), so dropped as well. For 0hlfW1O4Aa4: Deathloop imports it from libSceAmpr (IMPORT_LIB index 48, verified from the ELF dynamic section), and TLOU only references that one NID out of Ampr's whole surface, so I removed it from libc here and kept it in #407's Ampr. libs rebuilt clean.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-04T21:07:48Z.
Thanks for the rebase, and good catch on GlelR9EEeck being cbrtf. Three things in the new head:
sceNpSessionSignalingGetConnectionStatus, the implementation with the real signature. The duplicate I mentioned on #302 was the(void)one there; this one has to stay.Exporting them under these names also avoids the clash with #407, which uses
sceHttpUnknown02andsceNetUnknown01for different NIDs. Their TechnicalDebt lines would then say "unknown signature". The red Windows job is the guest_audio_in_no_device flake that #532 fixed.Imported from boykopovar/AnyPS5. Originally posted by Pouare514 on 2026-10-04T23:16:16Z.
Done all three: restored main's sceNpSessionSignalingGetConnectionStatus implementation and the seven TechnicalDebt lines; exported all ten NIDs under their recomputed real names as plain functions (no APS5_EXPORT, so nid_patcher resolves each to its NID with no duplicates — verified with a clean local libs build), with unknown signature TechnicalDebt lines. This also clears the sceHttpUnknown02/sceNetUnknown01 clash with #407. Also dropped the stray AudioIn hunk from this branch.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-04T23:43:41Z.
Thanks, that covers all three: main's
sceNpSessionSignalingGetConnectionStatusand the seven TechnicalDebt lines are back, and the ten NIDs are exported under their real names with "unknown signature" lines. No other open PR exports any of these names or NIDs now.It needs one more rebase: #555 (now on main) added
sceHttpCreateRequest2and friends at the end oflibSceHttp/Export.cpp, which conflicts withsceHttpParseResponseHeader, and TechnicalDebt.md conflicts as well. Keeping both sides works; with that,libsbuilds here and the full ctest passes.While rebasing, could you leave main's
sceNpSessionSignalingGetConnectionStatusbody as it is? The hunk there now only re-indents it, and the same goes for the deleted blank line abovesceHttpUnknown00. After the rebase it's ready to merge from my side.Imported from boykopovar/AnyPS5. Originally posted by Pouare514 on 2026-10-05T00:20:08Z.
Rebased onto current main, keeping both sides in libSceHttp/Export.cpp (#555's CreateRequest2 and friends plus sceHttpParseResponseHeader) and TechnicalDebt.md. Main's sceNpSessionSignalingGetConnectionStatus body is now byte-identical to main, and the blank line above sceHttpUnknown00 is restored — the Http and SessionSignaling diffs are purely additive now. libs builds and full ctest (221 tests) passes locally.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-05T00:21:25Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)docs/dev/TechnicalDebt.mdL59Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-05T01:18:02Z.
Thanks. After the rebase the diff only adds code: main's
sceNpSessionSignalingGetConnectionStatusbody and the blank line in libSceHttp are untouched, #555's functions are kept, and the ten names still recompute to their NIDs with "unknown signature" lines. No other open PR or main exports any of them. CI is green on the new head.Ready to merge from my side. When it lands, #407, #545 and #550 each need a one-line TechnicalDebt.md rebase, because they all append to the end of "Unknown function info" (#545 also appends to the end of
libc/src/RuntimeSupport.cpp).