feat(libc): export the wide time_get facet vtable as data #9464

Merged
mazen320 merged 3 commits from upstream-pr/9464 into main 2026-10-26 10:19:40 +00:00
mazen320 commented 2026-10-21 22:45:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-21T22:45:55Z.


What

Export time_get<wchar_t>'s vtable (NID sEca1nUOueA) as thirteen zeroed uintptr_t slots so titles that resolve it as data get a 104-byte object matching console libSceLibcInternal, same pattern as the other facet vtables. Facet calls through the slots still fault until methods are wired (debt note). Wide counterpart to #9456; merge after that PR so the paired debt notes and GuestLocale checks land in order. Additive with #8880/#9038 (distinct NIDs).

Tested

  • ctest --test-dir build-win -R guest_locale — passed (Windows MinGW), after rebase onto upstream/main 110a18ba0.
  • python tools/check_conventions.py --base upstream/main — passed.
  • Console: sEca1nUOueA is STT_OBJECT st_size 104 in firmware libSceLibcInternal.sprx (FTP measurement).

Checklist

  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4959372852 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9464). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-21T22:45:55Z. --- ### What Export `time_get<wchar_t>`'s vtable (NID `sEca1nUOueA`) as thirteen zeroed `uintptr_t` slots so titles that resolve it as data get a 104-byte object matching console `libSceLibcInternal`, same pattern as the other facet vtables. Facet calls through the slots still fault until methods are wired (debt note). Wide counterpart to #9456; merge after that PR so the paired debt notes and `GuestLocale` checks land in order. Additive with #8880/#9038 (distinct NIDs). ### Tested - `ctest --test-dir build-win -R guest_locale` — passed (Windows MinGW), after rebase onto `upstream/main` `110a18ba0`. - `python tools/check_conventions.py --base upstream/main` — passed. - Console: `sEca1nUOueA` is STT_OBJECT st_size 104 in firmware `libSceLibcInternal.sprx` (FTP measurement). ### Checklist - Depends on: none - Fixes: none - Unblocks: none - GPUs tested: n/a - AI-assisted: yes
MarcZX10 commented 2026-10-21 22:54:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-21T22:54:34Z.

Review: APPROVED


Reviewed the exported time_get<wchar_t> object as a distinct NID and symbol from #9456’s time_get<char> object. The 13-slot uintptr_t storage is 104 bytes, matches the recorded console export size, and the test verifies the full zero-initialized storage is writable. The debt note clearly states that virtual calls remain unsupported. Eligibility, conventions, intake, labels, report, all four relinker configurations, ASan relinker, both register-context variants and both write-watch jobs pass; aggregate Linux/Windows jobs are skipped for the changed paths. The only outstanding hosted build job is the Windows relinker, so I will wait for that before treating the check set as final.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5607211566 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9464#pullrequestreview-5607211566). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-21T22:54:34Z. **Review:** APPROVED --- Reviewed the exported `time_get<wchar_t>` object as a distinct NID and symbol from #9456’s `time_get<char>` object. The 13-slot `uintptr_t` storage is 104 bytes, matches the recorded console export size, and the test verifies the full zero-initialized storage is writable. The debt note clearly states that virtual calls remain unsupported. Eligibility, conventions, intake, labels, report, all four relinker configurations, ASan relinker, both register-context variants and both write-watch jobs pass; aggregate Linux/Windows jobs are skipped for the changed paths. The only outstanding hosted build job is the Windows relinker, so I will wait for that before treating the check set as final.
MarcZX10 commented 2026-10-22 04:34:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T04:34:04Z.

Review: DISMISSED


The object size/NID evidence and focused locale test were reviewed previously. The current head is based on a6dcea927, 47 commits behind current main (110a18ba01); please rebase and rerun the focused locale test, conventions, and overlap checks. The overlap report names #8880 and #9038 in the same locale source/test files, and #9464 is expressly the wide counterpart to #9456: please record the correct Depends on: #9456 or a concrete independent merge order if appropriate, and verify the combined test/debt changes survive both PRs. The Unblocks line must be none or a title ID plus its Game bring-up discussion; the current generic wording does not satisfy the contribution template. I did not run local tests for this follow-up.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5609300425 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9464#pullrequestreview-5609300425). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T04:34:04Z. **Review:** DISMISSED --- The object size/NID evidence and focused locale test were reviewed previously. The current head is based on `a6dcea927`, 47 commits behind current main (`110a18ba01`); please rebase and rerun the focused locale test, conventions, and overlap checks. The overlap report names #8880 and #9038 in the same locale source/test files, and #9464 is expressly the wide counterpart to #9456: please record the correct `Depends on: #9456` or a concrete independent merge order if appropriate, and verify the combined test/debt changes survive both PRs. The `Unblocks` line must be `none` or a title ID plus its Game bring-up discussion; the current generic wording does not satisfy the contribution template. I did not run local tests for this follow-up.
mazen320 commented 2026-10-22 04:37:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-22T04:37:25Z.


Rebased onto current main (110a18ba0), reran guest_locale and conventions (both passed). Updated the checklist: Unblocks: none, and recorded Depends on / merge order vs the overlapping locale PRs as requested.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6332824717 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9464#issuecomment-6332824717). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-22T04:37:25Z. --- Rebased onto current `main` (`110a18ba0`), reran `guest_locale` and conventions (both passed). Updated the checklist: `Unblocks: none`, and recorded `Depends on` / merge order vs the overlapping locale PRs as requested.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!9464
No description provided.