fix(libc): size the num_put facet vtable to 112 bytes #9698
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9698"
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 mazen320 on 2026-10-22T08:56:00Z.
What
Export
num_put<char>'s vtable (NID1kZFcktOm+s) as fourteen zeroeduintptr_tslots so titles that resolve it as data get a 112-byte object matching console titlelibc.prx(PPSA16833). The previous twelve-slot export was short by two entries. Facet calls through the slots still fault until methods are wired (debt note).#9038 also touches this array while adding
_Getcatand still declares twelve slots on its branch. Prefer landing this size fix first so #9038 can rebase onto fourteen slots (or update its declaration before merge). Not a stack: Depends on stays none.Tested
ctest --test-dir build-win -R guest_locale— passed (Windows MinGW) after rebase ontoupstream/main8b3a6ba88.python tools/check_conventions.py --base upstream/main— passed.1kZFcktOm+sis STT_OBJECTst_size112 in PPSA16833sce_module/libc.prx(dynsym).Checklist
Imported from boykopovar/AnyPS5. Originally posted by clairtonmichel on 2026-10-22T09:23:17Z.
Tested on AMD Ryzen 7 9800X3D and AMD Radeon RX 7900 XTX (Fedora Linux, Mesa 26.2.5):
num_putfacet vtable size fix (112 bytes) is stable. Ready to merge!Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T12:21:28Z.
Review: CHANGES_REQUESTED
I reviewed the change from 12 to 14
uintptr_tslots and itsGuestLocalecoverage. The object size matches the 112-bytest_sizeevidence cited from PPSA16833, and the test verifies all 14 slots are writable. Hosted conventions, eligibility, intake, labels, report, and relinker checks pass; the automatic full Linux/Windows product jobs are skipped. The author reports a Windows MinGWguest_localetest pass; I could not independently execute that test in this Linux checkout.Please update this branch to current
main(8b3a6ba88d8fc74e768f1a7e8e9e36fb69842768); this head is based on7e2ba73e4c, 13 commits behind. Re-runguest_localeafter the update.Please revise the overlap note and coordinate with #9038 before either change lands. #9038 is open and its branch declares this same
num_putvtable with 12 slots while adding_Getcat; if that definition lands after this change without preserving the 14-slot size, it reintroduces the mismatch. Agree on the integration order and declare the dependency if stacking the branches. Also, the checklist currently saysUnblocks: titles that import...; the repository asks for a title ID and Game Bring-up discussion link for a title-specific stop. PPSA16833 appears in the evidence, but I found no matching Game Bring-up discussion from the linked repository search; please add the relevant discussion and stop/log context, or useUnblocks: noneif this is not tied to a current title stop.Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-22T12:26:02Z.
Rebased onto current
main(8b3a6ba88). Re-ranguest_localeon Windows MinGW after the rebase — passed. Conventions still pass.On #9038: this PR is only the fourteen-slot size; theirs adds
_Getcatand still has twelve slots. Prefer this landing first so they can rebase and keep[14], rather than stacking (no Depends on). Updated the body accordingly and set Unblocks: none (PPSA16833 was measurement evidence only, not a Game Bring-up stop).Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-22T12:55:25Z.
Rebased again onto current
main(3ca07d086);guest_localeand conventions still pass.