feat(libs): declare the exports PPSA23566 imports that no library provides #992

Merged
CnRJay merged 2 commits from upstream-pr/992 into main 2026-10-07 00:02:57 +00:00
CnRJay commented 2026-10-06 22:15:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-10-06T22:15:00Z.


What

UFC 6 (PPSA23566) fails eager binding on imports that no library exports. This declares the 31 of them that no open pull request adds, plus the two modules its DT_NEEDED names that do not exist yet (libSceNpPartner001, libSceProprietaryVoiceChatHelperPrx), as throwing stubs that call NotImplemented_nid_no_patch, like #734:

Library (module) Exports
libSceAudioOut2 (libSceAudioOut) sceAudioOut2UserGetSupportedAttributes
libSceConvertKeycode sceConvertKeycodeGetCharacterFromKeyboardData
libSceHttp sceHttpSetCookieRecvCallback, sceHttpSetRedirectCallback, sceHttpsGetSslError, sceHttpsSetSslVersion
libSceJson2 sce::Json::MemAllocator::notifyError, sce::Json::Value::clear
libSceNet sceNetResolverAbort
libSceNpCommerce sceNpCommerceDialogOpen2
libSceNpEntitlementAccessPft (libSceNpEntitlementAccess) sceNpEntitlementAccessGetPftFlag
libSceNpPartner001 (new module) 7CxI50-xlCk, pMxXhNozUX8 (unknown names, APS5_EXPORT)
libSceProprietaryVoiceChatHelper (new module libSceProprietaryVoiceChatHelperPrx) sceProprietaryVoiceChatHelper{Initialize,Terminate,SetVoiceChatState,GetVoiceChatUsageState}
libScePsml_mfsr2 (libScePsml_debug) 9 unknown names (APS5_EXPORT); 7 imported by the eboot, 2 by its Engine.Render.Core2.PlatformPs5.prx
libSceVoice sceVoiceGetResourceInfo, sceVoiceResetPort, sceVoiceEnableChat, sceVoiceDisableChat
libScePosix (libkernel) sleep: implemented (sleeps the given seconds, returns 0)

The names come from shadPS4's aerolib NID list (src/core/aerolib/aerolib.inl); each was checked to hash to its NID with tools/nid_names.py. The pinned zecoxao list the tool downloads has none of them. All stubs except sleep take no parameters; recorded under "Unknown function info" in TechnicalDebt. The module of each import was taken from its #lib#mod suffix and the DT_SCE_IMPORT_MODULE table.

The title's 5 other missing imports are added by open pull requests and are not repeated: #407/#545 (cRILAEvn+9M), #518 (5tRaBjtdTzY, T4ucGB8CsnM), #734 (VgYczPGB5ss, O7dIZQrwVFY).

Tested

  • Windows 11, bundled MinGW 15.2, Release, on edf90b16: full build, libs target, 365/365 CTest.
  • PPSA23566: every declared NID is exported by the built libraries (checked against the PE export tables). With these stubs and the five from the PRs above, all 800 imports of the eboot and its three guest modules resolve, and the title runs into its own startup code; the first of these it calls is sceAudioOut2UserGetSupportedAttributes, after content mounting (with the equeue timer fix from #807 applied locally).

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4765245152 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/992). Originally posted by [CnRJay](https://github.com/CnRJay) on 2026-10-06T22:15:00Z. --- ### What UFC 6 (PPSA23566) fails eager binding on imports that no library exports. This declares the 31 of them that no open pull request adds, plus the two modules its `DT_NEEDED` names that do not exist yet (`libSceNpPartner001`, `libSceProprietaryVoiceChatHelperPrx`), as throwing stubs that call `NotImplemented_nid_no_patch`, like #734: | Library (module) | Exports | |---|---| | libSceAudioOut2 (libSceAudioOut) | `sceAudioOut2UserGetSupportedAttributes` | | libSceConvertKeycode | `sceConvertKeycodeGetCharacterFromKeyboardData` | | libSceHttp | `sceHttpSetCookieRecvCallback`, `sceHttpSetRedirectCallback`, `sceHttpsGetSslError`, `sceHttpsSetSslVersion` | | libSceJson2 | `sce::Json::MemAllocator::notifyError`, `sce::Json::Value::clear` | | libSceNet | `sceNetResolverAbort` | | libSceNpCommerce | `sceNpCommerceDialogOpen2` | | libSceNpEntitlementAccessPft (libSceNpEntitlementAccess) | `sceNpEntitlementAccessGetPftFlag` | | libSceNpPartner001 (new module) | `7CxI50-xlCk`, `pMxXhNozUX8` (unknown names, `APS5_EXPORT`) | | libSceProprietaryVoiceChatHelper (new module libSceProprietaryVoiceChatHelperPrx) | `sceProprietaryVoiceChatHelper{Initialize,Terminate,SetVoiceChatState,GetVoiceChatUsageState}` | | libScePsml_mfsr2 (libScePsml_debug) | 9 unknown names (`APS5_EXPORT`); 7 imported by the eboot, 2 by its `Engine.Render.Core2.PlatformPs5.prx` | | libSceVoice | `sceVoiceGetResourceInfo`, `sceVoiceResetPort`, `sceVoiceEnableChat`, `sceVoiceDisableChat` | | libScePosix (libkernel) | `sleep`: implemented (sleeps the given seconds, returns 0) | The names come from shadPS4's aerolib NID list (`src/core/aerolib/aerolib.inl`); each was checked to hash to its NID with `tools/nid_names.py`. The pinned zecoxao list the tool downloads has none of them. All stubs except `sleep` take no parameters; recorded under "Unknown function info" in TechnicalDebt. The module of each import was taken from its `#lib#mod` suffix and the `DT_SCE_IMPORT_MODULE` table. The title's 5 other missing imports are added by open pull requests and are not repeated: #407/#545 (`cRILAEvn+9M`), #518 (`5tRaBjtdTzY`, `T4ucGB8CsnM`), #734 (`VgYczPGB5ss`, `O7dIZQrwVFY`). ### Tested - Windows 11, bundled MinGW 15.2, Release, on `edf90b16`: full build, `libs` target, 365/365 CTest. - PPSA23566: every declared NID is exported by the built libraries (checked against the PE export tables). With these stubs and the five from the PRs above, all 800 imports of the eboot and its three guest modules resolve, and the title runs into its own startup code; the first of these it calls is `sceAudioOut2UserGetSupportedAttributes`, after content mounting (with the equeue timer fix from #807 applied locally). ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-06 22:15:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-06T22:15:26Z.


Progress report (c1241ad → df98b88)

📉 System libraries: 86.34% (-0.91%, +1 implemented, +30 declared functions)

✅ 1 implemented
Library Name
libkernel sleep_nid_postfix
🆕 30 declared as stubs
Library Name
libSceAudioOut sceAudioOut2UserGetSupportedAttributes
libSceConvertKeycode sceConvertKeycodeGetCharacterFromKeyboardData
libSceHttp sceHttpSetCookieRecvCallback
libSceHttp sceHttpSetRedirectCallback
libSceHttp sceHttpsGetSslError
libSceHttp sceHttpsSetSslVersion
libSceJson2 _ZN3sce4Json12MemAllocator11notifyErrorEimPv
libSceJson2 _ZN3sce4Json5Value5clearEv
libSceNet sceNetResolverAbort
libSceNpCommerce sceNpCommerceDialogOpen2
libSceNpEntitlementAccess sceNpEntitlementAccessGetPftFlag
libSceNpPartner001 sceNpPartnerUnknown_7CxI50_MxlCk
libSceNpPartner001 sceNpPartnerUnknown_pMxXhNozUX8
libSceProprietaryVoiceChatHelperPrx sceProprietaryVoiceChatHelperGetVoiceChatUsageState
libSceProprietaryVoiceChatHelperPrx sceProprietaryVoiceChatHelperInitialize
libSceProprietaryVoiceChatHelperPrx sceProprietaryVoiceChatHelperSetVoiceChatState
libSceProprietaryVoiceChatHelperPrx sceProprietaryVoiceChatHelperTerminate
libScePsml_debug scePsmlMfsr2Unknown_0GAw7SmkwII
libScePsml_debug scePsmlMfsr2Unknown_1ic5q_MkdOsc
libScePsml_debug scePsmlMfsr2Unknown_5z2gBlqxJ_P0
libScePsml_debug scePsmlMfsr2Unknown_Kyy1baXgaVU
libScePsml_debug scePsmlMfsr2Unknown_ZLL31lzzxr4
libScePsml_debug scePsmlMfsr2Unknown_gMduXCLYrNg
libScePsml_debug scePsmlMfsr2Unknown_lrJwpLjKXRc
libScePsml_debug scePsmlMfsr2Unknown_m9JLPc3wOQw
libScePsml_debug scePsmlMfsr2Unknown_o_PNM86gEwFE
libSceVoice sceVoiceDisableChat
libSceVoice sceVoiceEnableChat
libSceVoice sceVoiceGetResourceInfo
libSceVoice sceVoiceResetPort
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6026441380 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/992#issuecomment-6026441380). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-06T22:15:26Z. --- <!-- progress-report --> ### Progress report (c1241ad → df98b88) 📉 **System libraries**: 86.34% (-0.91%, +1 implemented, +30 declared functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libkernel | `sleep_nid_postfix` | </details> <details> <summary>🆕 30 declared as stubs</summary> | Library | Name | | - | - | | libSceAudioOut | `sceAudioOut2UserGetSupportedAttributes` | | libSceConvertKeycode | `sceConvertKeycodeGetCharacterFromKeyboardData` | | libSceHttp | `sceHttpSetCookieRecvCallback` | | libSceHttp | `sceHttpSetRedirectCallback` | | libSceHttp | `sceHttpsGetSslError` | | libSceHttp | `sceHttpsSetSslVersion` | | libSceJson2 | `_ZN3sce4Json12MemAllocator11notifyErrorEimPv` | | libSceJson2 | `_ZN3sce4Json5Value5clearEv` | | libSceNet | `sceNetResolverAbort` | | libSceNpCommerce | `sceNpCommerceDialogOpen2` | | libSceNpEntitlementAccess | `sceNpEntitlementAccessGetPftFlag` | | libSceNpPartner001 | `sceNpPartnerUnknown_7CxI50_MxlCk` | | libSceNpPartner001 | `sceNpPartnerUnknown_pMxXhNozUX8` | | libSceProprietaryVoiceChatHelperPrx | `sceProprietaryVoiceChatHelperGetVoiceChatUsageState` | | libSceProprietaryVoiceChatHelperPrx | `sceProprietaryVoiceChatHelperInitialize` | | libSceProprietaryVoiceChatHelperPrx | `sceProprietaryVoiceChatHelperSetVoiceChatState` | | libSceProprietaryVoiceChatHelperPrx | `sceProprietaryVoiceChatHelperTerminate` | | libScePsml_debug | `scePsmlMfsr2Unknown_0GAw7SmkwII` | | libScePsml_debug | `scePsmlMfsr2Unknown_1ic5q_MkdOsc` | | libScePsml_debug | `scePsmlMfsr2Unknown_5z2gBlqxJ_P0` | | libScePsml_debug | `scePsmlMfsr2Unknown_Kyy1baXgaVU` | | libScePsml_debug | `scePsmlMfsr2Unknown_ZLL31lzzxr4` | | libScePsml_debug | `scePsmlMfsr2Unknown_gMduXCLYrNg` | | libScePsml_debug | `scePsmlMfsr2Unknown_lrJwpLjKXRc` | | libScePsml_debug | `scePsmlMfsr2Unknown_m9JLPc3wOQw` | | libScePsml_debug | `scePsmlMfsr2Unknown_o_PNM86gEwFE` | | libSceVoice | `sceVoiceDisableChat` | | libSceVoice | `sceVoiceEnableChat` | | libSceVoice | `sceVoiceGetResourceInfo` | | libSceVoice | `sceVoiceResetPort` | </details>
oneandonlydean commented 2026-10-06 22:40:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-06T22:40:39Z.


Thanks for naming the 20 from the aerolib list, and for keeping every stub throwing; the single TechnicalDebt line reads much better too.

One question before I merge: are libSceNpPartner001 and libSceProprietaryVoiceChatHelperPrx system modules, or does PPSA23566 ship them in its sce_module folder? If the title ships them, they should be loaded from there rather than added here (CONTRIBUTING: don't replace modules a title ships itself). If they're system modules, nothing else needs to change.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6026766241 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/992#issuecomment-6026766241). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-06T22:40:39Z. --- Thanks for naming the 20 from the aerolib list, and for keeping every stub throwing; the single TechnicalDebt line reads much better too. One question before I merge: are `libSceNpPartner001` and `libSceProprietaryVoiceChatHelperPrx` system modules, or does PPSA23566 ship them in its `sce_module` folder? If the title ships them, they should be loaded from there rather than added here (CONTRIBUTING: don't replace modules a title ships itself). If they're system modules, nothing else needs to change.
github-actions[bot] commented 2026-10-06 22:43:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-06T22:43:39Z.


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.

Pull request Conflicting files (lines on main) Same exports Same new files
#986 docs/dev/TechnicalDebt.md L33
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6026802561 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/992#issuecomment-6026802561). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-06T22:43:39Z. --- <!-- pr-overlap --> 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**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #986 | `docs/dev/TechnicalDebt.md` [L33](https://github.com/boykopovar/AnyPS5/blob/ab9437e34df49c00b32a514a2516e15bd75145db/docs/dev/TechnicalDebt.md#L33) | | |
CnRJay commented 2026-10-06 22:46:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-10-06T22:46:36Z.


Both are system modules. PPSA23566 ships only libc.prx and libSceNpCppWebApi.prx in sce_module/ (plus fakelib/ with Agc, AgcDriver, Ampr and Psml, which the relinker doesn't use); neither libSceNpPartner001 nor libSceProprietaryVoiceChatHelperPrx is anywhere in the package. The eboot names both only in DT_NEEDED, and it loads NpPartner001 at run time with sceSysmoduleLoadModule(0x11a), which is already libSceNpPartner001 in ModuleTable.hpp.

🤖 Addressed by Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6026838426 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/992#issuecomment-6026838426). Originally posted by [CnRJay](https://github.com/CnRJay) on 2026-10-06T22:46:36Z. --- Both are system modules. PPSA23566 ships only `libc.prx` and `libSceNpCppWebApi.prx` in `sce_module/` (plus `fakelib/` with Agc, AgcDriver, Ampr and Psml, which the relinker doesn't use); neither `libSceNpPartner001` nor `libSceProprietaryVoiceChatHelperPrx` is anywhere in the package. The eboot names both only in `DT_NEEDED`, and it loads NpPartner001 at run time with `sceSysmoduleLoadModule(0x11a)`, which is already `libSceNpPartner001` in `ModuleTable.hpp`. _🤖 Addressed by [Claude Code](https://claude.com/claude-code)_
Sign in to join this conversation.
No reviewers
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!992
No description provided.