feat(libc): export the collate facet vtable as data #9979
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9979"
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-23T02:08:34Z.
What
Export
collate<char>'s vtable (NIDruZtIwbCFjk) as nine zeroeduintptr_tslots so titles that resolve it as data get a 72-byte object matching console titlelibc.prx(PPSA16833). Facet calls through the slots still fault until methods are wired (debt note)._Getcatstill installs the hostg_collateVtablefor facets it builds.Orthogonal to open facet-vtable exports (
ctype#9735 / #9761,time_get#9456 / #9464,num_get#9468,num_put#9698 / #9845). Not covered by #9038 (codecvt/numpunct/time_put_Getcat). Wide follow-up can Depend on this (_ZTVSt7collateIwE, also 72 on the samelibc.prx).Tested
ctest --test-dir build-win -R '^guest_locale$'— passed (Windows MinGW).python tools/check_conventions.py --base upstream/main— passed.ruZtIwbCFjkis STT_OBJECTst_size72 in PPSA16833sce_module/libc.prx(dynsym via PT_DYNAMIC).Checklist
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T04:13:28Z.
Review: APPROVED
Reviewed exact head 2cb1d6676a342b6a2079c26bd46d706065c82467 against current main. The change adds the char collate vtable symbol as nine
uintptr_tslots (72 bytes), consistent with the reported consoleSTT_OBJECTsize, and the locale test verifies the object resolves, starts zeroed, and is writable. The unresolved virtual methods are clearly recorded in the debt note;_Getcat's host facet vtable path is unchanged. I found no duplicate export in the open PRs listed by the overlap check; shared debt/test-file edits are distinct.I reran the convention check against current main, the exact-head test-script registration audit (171 scripts at this PR head), and
git diff --check; all pass. The PR reportsguest_localepassing on Windows and has successful relinker checks on Linux, Windows, macOS, and macOS x86_64. I could not runguest_localelocally because this workspace has no configured AnyPS5 build or test executable. Hosted product build jobs are skipped by policy. The review is limited to making the data symbol available with its measured size; it does not establish the console vtable's slot contents or virtual-call behavior.No blocking issue found on this head.