fix(libkernel): name the instance lock release export so the NID patcher leaves it alone #17076
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17076"
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 oneandonlydean on 2026-11-08T09:37:24Z.
What
Main's Windows
patched_librariestest fails from the merge of #12970 (5bd71fb5bc): 15 modules reportLoadLibraryEx failed with error 127(procedure not found), includinglibSceSystemService.prxand the modules that import it (push runs 42462261342, 42462295448). It passed on the three pushes before that merge.#12970 added
ReleaseHostInstanceLock()in libkernel and calls it fromlibSceSystemService(StartHostExecutable). That is a call across the libkernel DLL boundary with a plain C++ name. Every other host call across it uses a_nid_postfixor_nid_no_patchname, includingLogFileRelease_nid_no_patchon the line above, so the NID patcher leaves the symbol alone. The plain name is the only cross-library name in this change without one, andlibSceSystemService.prxis the module that imports it.This renames it to
ReleaseHostInstanceLock_nid_no_patch(declaration, definition, the one call site, and the startup test that calls it). 4 files, 6 lines, no behaviour change.Tested
Linux x86-64, Release,
BUILD_TESTING=ON, onmainbed95ca442plus this commit:ctest -R instance_lockruns 9 tests (instance_lock,instance_lock_host, seveninstance_lock_startup_*), 9 of 9 pass, none skipped.Not verified: Windows. The cause is read from the failing modules and the call site, not reproduced, so the Windows
patched_librariesresult on this PR is the real check.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)mainafter #12970)