feat(libc): export std::overflow_error type info, vtable and destructor #4426
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4426"
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 babyhuey on 2026-10-12T10:51:08Z.
What
Exports
std::overflow_error's type info (_ZTISt14overflow_error, baseruntime_error), vtable (_ZTVSt14overflow_error) and destructor (_ZNSt14overflow_errorD1Ev) from libc. They are built likestd::range_errornext to them, sharing the message destroy/delete/whatslots. These are the three exports the titles import. The other constructors,D0/D2and the thrower are not added.PS5NES (PPSA99204) and PS5N64 (PPSA99206) are missing nothing else.
--trap-sdk-syscall-stubs(#3804, see #2136), which the runs below use.main9aa5fd29they stop here:undefined symbol: lt0mLhNwjs0 (_ZTISt14overflow_error)FAIL: unresolved ELF import XilOsTdCZuM (_ZNSt14overflow_errorD1Ev) from libSceLibcInternal.prxDisplayWindow.DRAW_INDEX_AUTO/SET_SH_REGsubmission, a graphics stop that is not an import.0vTn5IDMU9Ain libkernel.Tested
Linux (Ubuntu 24.04, GCC 13) and Windows 11 (MinGW-w64 GCC 15.2 from WinLibs), Release. The new
guest_overflow_errorpasses 5/5 (--repeat until-fail:5) on both, with no warnings inStandardExceptions.cpporGuestOverflowError.cpp. It checks:runtime_error'swhatslotsruntime_error'sconst char*constructor, and is safe to call twicecheck_conventions.pyandcheck_test_registration.pypass.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T10:53:38Z.
Progress report (
c390d81→d316fcd)➖ System libraries: 86.26% (+0.0%, +1 implemented functions)
✅ 1 implemented
_ZNSt14overflow_errorD1Ev_nid_postfix