feat(libcinternal): add recovered inventory placeholders #13273
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/13273"
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 Celegans12 on 2026-10-30T10:53:22Z.
What
Add the 40 newly named, physically corroborated exports for the existing
libSceLibcInternalsystem-library provider. Each entry immediately throws throughNotImplemented_nid_no_patch; the parameterlessintdeclarations are import-resolution placeholders with unverified arguments, return types and behavior.Evidence is pinned to LIBRARIES.md and the per-library metadata at
226383a7fa4b1275d6cebf61eb1c1e7ca7b58bcb. These names were unresolved at the prior inventory pin. All 40 name/NID pairs independently recompute and are also present in the physical libSceLibcInternal map atcc1d586fddab576a520f226da6b2632b031e6d09.The inventory has 86 newly named LibcInternal records. This change excludes 42 whose NIDs are absent from that pinned physical-module map: 40 C23
stdc_*names,memset_explicit, andtimespec_getres. It also excludes four__std_find_last_trivial_*placeholders so they do not shadow a workinglibcimplementation being prepared by @Danigamer05.The existing LibcInternal host is retained because the pinned map assigns these NIDs directly to it and none has a global source, normalized-name, assembly or literal-alias owner on the preparation base. The current loader searches the named LibcInternal provider before its existing
libcfallback (WindowsEntryStubBuilder.cpp), andGuestModuleBuilder.cppretains both dependencies. Existinglibcvector helpers, declarations, aliases and implementations are unchanged. No new host, Sysmodule ID or middleware replacement is introduced.__std_minmax_d-h179cDLv9E__std_minmax_element_f2+A95Lpvs7w__std_bitset_to_string_140rZnNs8g7A__std_max_1i42RB3vrLDrk__std_minmax_element_d4sz2d0dPfM4__std_max_2u8SuWbX+OAKQ_ZNSt8__sce_v215_Thrd_sleep_forEmB7RFX6LbnZI__std_atomic_notify_multi_directBS5uazcBa-k__std_min_dCGoV+Pxv01c__std_max_1uEY5VhjRs2Ns__std_min_2iF0X6QBFDu+Q__std_max_element_dGYJW0yA3+F0__std_min_1uJkTHJqCAwss__std_min_element_fJpRyi95NwdQ__std_minmax_fLPtBDdftNWI__std_min_fQvYwwfBxkAQ__std_minmax_1uRcZeqPseA-g__truncdfhf2S-XTDZYtLwg__std_minmax_4iTdSSMbkd+uI__std_atomic_wait_get_deadlineToTzlyOSMrU__std_max_2iVUfc7GWVKT4sceLibcInternalPrimitiveMallocStatsFastVctQdQmb1aY__std_atomic_wait_get_remaining_timeoutX1WFm9oMoc4__std_atomic_wait_direct_8XDmCPWa3MEo__std_min_1iXxFnGBq9gO4__std_min_2uciCrvCIGY3E__std_minmax_1ieRl6YSM0BKw__std_minmax_8ifmig4AQY0xs__std_max_dg2zY7vjUEDQ__std_max_element_fhXRNdF7MiVg__std_minmax_4ulMvSDjUw6q8sceLibcInternalPrimitiveMallocStatsn+qovUGsL3U_ZNSt8__sce_v236_Mtx_init_with_default_name_overrideEPP13pthread_mutexiPKcnaKdJL9d3nE__std_minmax_2uqI8SBSRZ-FA__std_minmax_2iqgPObzu1h+E__std_max_fqxTZXxipaZY__std_minmax_8usS4cYWO4yXw__std_min_element_dvqKFqjbsrg0__std_atomic_wait_direct_16vsw4c+uWXGQ__std_bitset_to_string_2xM78av0AYxMTested
On the current revision, the recovered source compiled on Linux x86-64 with GCC using
-std=c++20 -Wall -Wextra -Werror -fsyntax-only; conventions andgit diff --checkpassed, and the 40 declarations matched the 40 definitions with all four find-last placeholders absent.The following tests apply to the earlier 44-export version, before removing four placeholders. Linux x86-64, GCC 13.3.0. Current-main base:
ebe0ffe04c7fb4b1e750caa699718554d820701e; validated head48f1f0db5722c70094c4faf87fc27a4d32910c70.python3 tools/check_conventions.py --base origin/mainandgit diff --check origin/mainpassed.-Wall -Wextra -Werror.python3 core/libs/tests/test_public_headers.py --compiler g++passed after the current-main rebase: 374 libraries, 14,705 exports, unique declarations and umbrella reachability, and all standalone header compilation units. This invoked the full nonbatched compiler audit, rather than individual CTest shards.nid_patcherexposes all 44 exact expected NIDs once each, no extra NID-like exports and no raw declarations. Disassembly shows 44 direct calls toNotImplemented_nid_no_patch.BUILD_TESTING=ONpassed, and the actuallibSceLibcInternal,nid_patcherandguest_init_once_teststargets built successfully. After the current-main rebase, configuration, native targets and focused tests passed again:guest_init_once1/1 and the CMakepublic_headersgenerator 1/1. The actual rebuilt provider DSO was patched using the standard NID-patcher sequence; every expected new NID appears exactly once and every raw name is removed. The all-library patched-output target was not built.python3 tools/pr_overlap.py --branch feat/libcinternal-recovered-inventory-20261030 --repo boykopovar/AnyPS5 --base main --jobs 8examined all 1,443 open PR heads against main3948413d701b093b32a194f5fe5525ea8d5f5079. No confirmed line, export or new-file collisions remained. The new source-list entry uses an independent insertion point before the existing unwind configuration. Git submodule recursion was disabled only for this read-only scan; its comparison logic was unchanged. The final topic also merges cleanly into that newer scanned main; native tests were run on the explicit base recorded above.No test invokes the new unknown-ABI exports and no test was added solely to assert symbol existence. The all-library build and full CTest suite were not run. No PS5 hardware, title/homebrew, Ghost of Yōtei, Windows or GPU testing was performed. No library behavior or title-compatibility improvement is claimed.
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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T11:10:07Z.
Review: APPROVED
Reviewed — looks good
The 44 libc-internal placeholders have unique names, match the pinned NID metadata and physical-module map, and clearly remain unimplemented at head
48f1f0db5722c70094c4faf87fc27a4d32910c70.What I ran
Reviewed head
48f1f0db5722c70094c4faf87fc27a4d32910c70against PR base3948413d701b093b32a194f5fe5525ea8d5f5079. A merge preview onto currentmain947ca6fe0ce323b2aec50c6ac31e9be69b5ceac8was clean (treea1e816125db5bdc2136504913b23a16e4e78b9a7). Environment: Debian 12 x86-64, Python 3.11.2, Git 2.39.5, GCC 12.2.0. I did not build or compile locally; author-reported compiler/test results are identified separately.Results
core/libs/prx; no matches were found.-Wall -Wextra -Werror; the public-header compiler audit and focused CTest passed. The DSO/NID patch checks are also author-reported.Unedited local check output
git diff --checkproduced no output. ABI audit summary:status: passed,findings: 0.Findings
Blocking
None found in the reviewed change.
Non-blocking
These names intentionally throw
NotImplemented_nid_no_patch. Their argument lists, return types, and runtime behavior remain unknown, as stated in the PR description and debt file.Sources
Not verified
I did not build the provider or independently run the author's CTest/DSO checks. Linux and specialized hosted jobs were skipped. I did not test on PS5 hardware. I did not reproduce the author's full three-way comparisons for the four stale peer branches; the direct source-name/NID search found no duplicate owner on those heads.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T11:39:57Z.
Review: APPROVED
Reviewed — looks good
The 44 additions match the pinned firmware inventory and physical-module map, and the exact-head static and merge checks found no blocking issue; they are clearly documented as import-resolution placeholders.
What I ran
Reviewed head
48f1f0db5722c70094c4faf87fc27a4d32910c70against PR base3948413d701b093b32a194f5fe5525ea8d5f5079. The current-main merge preview was clean against1c6b316cf762c7a8d34623907d62bc1cba2217b6. Environment: Debian 12 x86_64, Python 3.11.2, GCC 12.2.0. No local build or C++ tests were run.The isolated precheck checkout lacked the workspace-only ABI and test-quality helpers. I reran the ABI audit from the workspace and compared all candidate NIDs with the pinned inventory and map. I also checked candidate NIDs against the added literal exports in open PRs #11749, #11750, #11751, and #10392; none overlapped.
Results
main; conventions also passed in hosted CImainguest_init_once1/1 passed on the stated head; not rerun locallyObserved output
Negative control
Findings
Blocking
None found.
Non-blocking
The parameterless
intsignatures and runtime behavior remain unverified by design, as the PR body and technical-debt entry state. The existing peer PRs add different NIDs; their stale-base merge conflicts do not establish that those branches are mergeable with currentmain.Sources
Not verified
No local native build or CTest run; no PS5 console/title behavior; the actual parameter lists, return types, runtime ABI, and firmware availability beyond the cited inventory.