feat(libc): export the remaining std::__sce_v2 facet ids and ios_base _Sync and _Index #15923
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15923"
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 Danigamer05 on 2026-11-05T00:27:48Z.
What
Export the remaining
std::__sce_v2facet ids and the versionedios_base::_Syncandios_base::_Indexfrom libc._ZNSt8__sce_v28ios_base5_SyncEa05EUj+p6LA0x1939E4_ZNSt8__sce_v25ctypeItE2idE-WAEp-LsQK80x197928_ZNSt8__sce_v27codecvtItc9_MbstatetE2idEvKLkrWOC9080x197930_ZNSt8__sce_v27num_getIcNS_19istreambuf_iteratorIcNS_11char_traitsIcEEEEE2idECvgG53ICQZ80x198020_ZNSt8__sce_v27num_getIwNS_19istreambuf_iteratorIwNS_11char_traitsIwEEEEE2idE00lxRufmIV80x198028_ZNSt8__sce_v27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE2idEXUnjw9qmjZk0x198038_ZNSt8__sce_v28numpunctIwE2idE69nx-zgXr0o0x198048_ZNSt8__sce_v27codecvtIcc9_MbstatetE2idEef0jk36lGzM0x198050_ZNSt8__sce_v27collateIcE2idEUhVg8P8OCOQ0x198058_ZNSt8__sce_v27collateIwE2idEfjxxWfxa3g80x198060_ZNSt8__sce_v28messagesIcE2idExLZL2qvPy5M0x198068_ZNSt8__sce_v28messagesIwE2idEHdKMR94lfAM0x198070_ZNSt8__sce_v210moneypunctIcLb0EE2idEyIcTxIYUO+k0x198078_ZNSt8__sce_v210moneypunctIcLb1EE2idEfGdtCU3pAWA0x198080_ZNSt8__sce_v210moneypunctIwLb0EE2idEfazFp6JG9Uo0x198088_ZNSt8__sce_v210moneypunctIwLb1EE2idEsn-Jk8s1+9A0x198090_ZNSt8__sce_v29money_getIcNS_19istreambuf_iteratorIcNS_11char_traitsIcEEEEE2idE21EZf6FejHE0x198098_ZNSt8__sce_v29money_getIwNS_19istreambuf_iteratorIwNS_11char_traitsIwEEEEE2idEK2giEFoly0M0x1980A0_ZNSt8__sce_v29money_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE2idEIxyr-5QNxDA0x1980A8_ZNSt8__sce_v29money_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE2idENlLpvZiX8fE0x1980B0_ZNSt8__sce_v28time_getIcNS_19istreambuf_iteratorIcNS_11char_traitsIcEEEEE2idEX98EAGBf6780x1980B8_ZNSt8__sce_v28time_getIwNS_19istreambuf_iteratorIwNS_11char_traitsIwEEEEE2idEMYYj-E+1gAs0x1980C0_ZNSt8__sce_v28time_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE2idEdBdmM6nkpn00x1980C8_ZNSt8__sce_v28time_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE2idE-AmVeGEwTx00x1980D0_ZNSt8__sce_v28ios_base6_IndexEbWxIM09FkrI0x198508_ZNSt8__sce_v27codecvtIDsDu9_MbstatetE2idEqhaUpV8-EbQ0x198E58_ZNSt8__sce_v27codecvtIDiDu9_MbstatetE2idEyqJXbXHoCoQ0x198E60_ZNSt8__sce_v27codecvtIDsc9_MbstatetE2idEpKpcusqjEpA0x198E68_ZNSt8__sce_v27codecvtIDic9_MbstatetE2idEDnSrcExa0xU0x198E70The behavior comes from the
libc.prxbundled with PPSA03671 v01.001.005 (J03848509, SHA-256483961e086b8a1fffa8138b3c0badf798987fb5f35ec908d828946408be2d8a6).In the module the 27 facet ids are 8-byte zero-initialized variables, which the locale code numbers on first use through
locale::id::_Id_cnt, as for the five versioned ids main already exports.ios_base::_Indexis a zero 4-byte counter andios_base::_Synca one-byte flag that starts at 1. They sit inLocaleSupport.cppafter main's versioned ids, with the same start values.These are data only. This libc still has no versioned facets or streams behind them, so they let a title that imports them load and keep its own numbering; they do not add behavior.
Tested
Windows x86-64, WinLibs GCC 15.2.0, Release,
BUILD_TESTING=ON, main88bcfc7a7b0. Exact tested commit:aae14a4ddc6.guest_sce_v2_facet_idspasses, along withguest_sce_v2_localeandguest_locale._Indexare in.bss, and_Syncis the byte01in.data._Syncis one byte holding true, that_Indexis 0, and that no two exports share storage._Syncstarted at false, then one id started at 1. The new CTest failed on each. The source was then restored byte for byte (SHA-256 checked) and rebuilt, and the test passed again.git diff --checkpass.tools/pr_overlap.pyread 1,876 open PRs at the tested commit and reports no overlap. It keeps exit 2 for 29 branches that already conflict with main. Merging each of the 29 with this branch and with main usinggit merge-treegives the same conflict blocks. #13449 and #13486 name the unversionedcodecvt<char16_t, char>andcodecvt<char32_t, char>type names, not these ids, and add none of these NIDs. The branch also merges cleanly with #15336, #15471, #15484, #15490, #15501, #15519, #15552, #15561, #15602, #15614, #15667, #15683, #15791, #15796, #15809, #15834 and #15879.Not tested: Linux, macOS, another SDK, a game, GPU or console. No game compatibility claim. No original module, extracted bytes, harness or log is committed or uploaded.
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)🤖 Generated with Claude Code