refactor(libSceAjmi): name 18 of the exports declared by NID only #15495
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15495"
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 BunnyFl on 2026-11-03T15:37:30Z.
What
libSceAjmi declared 20 of its exports only by NID (
libSceAjmiUnknown_<NID>_nid_no_patchplus anAPS5_EXPORTalias), and its debt table listed them asUnknown. Each of the 20 NIDs is the hash of asceAjmi*name. This change gives 18 of the stubs those names, drops their 18 literal-NID aliases, and names their debt table rows. The stubs keep their NIDs and still throw.4MsUK9kAnKg(sceAjmiBatchJobInlineBuffer) andm0xisYC6U2w(sceAjmiBatchJobRunBufferRa) keep their NID-only declarations and aren't changed here. No behaviour changes.Why these names:
core/libs/nid/src/NidCompute.cppcomputes it).system/common/lib/libSceAjmi.sprx(sha256ff0dc985c1f7a6b25a766904e3a535b55e44d0d4b8872329d2bd6c019491df0b) defines all 20 in its dynamic symbol table (objdump -T; bodies not run).sceAjm*export of the same function, for examplesceAjmiInitialize(QhA7rTjJbro) andsceAjmInitialize(dl+4eHSzUu4) both at0xd0. The module exports each function under both prefixes.sceAjmiInstanceCodecType(Uqtj4RSP-JQ) is the one without asceAjm*twin in that module.sceAjmiBatchStartBuffer,sceAjmiBatchJobControlBufferRa,sceAjmiInstanceCreate,sceAjmiInstanceDestroy), andsceAjmiBatchJobRunBufferRa, which stays NID-only here, already appear indocs/dev/debt/libSceOpusCeltEnc.mdandlibSceOpusSilkEnc.md, which describe those encoders' calls into this library.6fY-ci3au2UsceAjmiModuleUnregister9zA4YMlkR9MsceAjmiBatchStartBufferBD002VBfhuEsceAjmiFinalizeEYIibEpcHuwsceAjmiStrErrorJ3UwQ5e6sNUsceAjmiBatchJobControlBufferRaLESEGgm133wsceAjmiInstanceSwitchMTdd8ApwO50sceAjmiDecAt9ParseConfigDataQhA7rTjJbrosceAjmiInitializeRbLGSlJB6dcsceAjmiBatchErrorDumpUqtj4RSP-JQsceAjmiInstanceCodecTypeX8sT-xi-dVEsceAjmiMemoryUnregisterYtubBgSeNH0sceAjmiInstanceDestroycWZnCK7na5YsceAjmiDecMp3ParseFramedTsNpEt1AqQsceAjmiMemoryRegisterdmwcwCeItmEsceAjmiModuleRegisterofRX8Vq0ss0sceAjmiInstanceCreatepfPwiigOE3AsceAjmiInstanceExtendr7NMFYcJi08sceAjmiBatchJobRunSplitBufferRaThe debt entry now says how the 18 were named and that 2 keep NID aliases (996 characters, under the length warning).
Tested
libSceAjmi.prxexports the same 24 NID-shaped names before and after the change. At head61b1eca537it still exports 24 (objdump -p). The only names that disappear are 18 host-onlylibSceAjmiUnknown_*_nid_no_patchhelper names; nothing in the repo refers to them (git grep).guest_ajm, which loadslibSceAjmi: 1 of 1 passes.public_headersand its 64 compile shards: 65 of 65 pass.tools/check_conventions.py --base upstream/main: all checks pass.tools/pr_overlap.py --branchat61b1eca537: no other open PR changes the same exports. One changes neighbouring lines ofinclude/InventoryExports.hppand the debt table, which whichever merges second will need to resolve. #13486 couldn't be compared automatically; its own file list on GitHub has no libSceAjmi file, and the libSceAjmi commits in its branch (6a7a2c7ccf,53608ab573,8065d65f01) are already inmain.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)🤖 Generated with Claude Code