AnyPS5/core/libs/prx
Jan Šlégl e753080391 fix(libkernel): count guest module segments against the flexible memory budget
sceKernelAvailableFlexibleMemorySize and the flexible maps counted only
explicit flexible mappings, so the full 448 MiB was reported while the
title's executable and modules were loaded. A title that derives its code
and data size from the budget minus the available size got an unsigned
underflow.

The segments of the main executable and of every .guest.prx module that
the title's ELF gives permissions now count, rounded to 16 KiB pages, as
shadPS4 maps every non-system module segment as flexible memory. The
relinker's own blocks and the host system libraries do not count. The
charge ends when a module is unloaded.

Refs #2883

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Fnrk5Dazjb2tLooVSpdRQq
2026-10-11 17:48:05 +02:00
..
libReactNative.Modules.Vsh feat(libs): define vabi macros + add to declarations 2026-09-10 08:07:03 +03:00
libReactNative.Modules.Vsh.WebAppLauncher feat(libs): define vabi macros + add to declarations 2026-09-10 08:07:03 +03:00
libSceAcm feat(libs): declare the exports PPSA14632 imports that no library provides 2026-10-07 07:10:13 +02:00
libSceAgc feat(libSceAgc): implement sceAgcDebugRaiseException 2026-10-11 07:47:33 -03:00
libSceAgcDriver Merge pull request #3482 from MarcZX100/codex/rx-cross-block-3475 2026-10-11 14:02:02 +02:00
libSceAgcVsh refactor(libkernel): merged dup pthread functions from _sys and _web 2026-09-13 16:24:42 +03:00
libSceAjm refactor(ajm): drop duplicated stub exports from libSceAjm and libSceAjmi 2026-10-02 09:16:34 +02:00
libSceAjm.native Merge pull request #2395 from ArchitDewan/fix/atrac9-gradient-bounds 2026-10-11 10:29:27 +02:00
libSceAjmi refactor(ajm): drop duplicated stub exports from libSceAjm and libSceAjmi 2026-10-02 09:16:34 +02:00
libSceAmpr fix(libs): share Sony CRT semantics between libc and libSceAmpr with tests 2026-10-11 11:42:31 +02:00
libSceAppContent feat(libSceAppContent): implement sceAppContentGetAddcontDownloadProgress 2026-10-11 07:48:11 +02:00
libSceAudio refactor(audio): drop duplicated stub exports from libSceAudio 2026-10-02 09:16:34 +02:00
libSceAudio3d fix(audio): pace blocking audio calls with a high-resolution timer 2026-10-10 01:31:57 +02:00
libSceAudioIn build: route system dependency include paths and pin the shader cache to package versions 2026-10-11 10:18:23 +02:00
libSceAudioOut build: route system dependency include paths and pin the shader cache to package versions 2026-10-11 10:18:23 +02:00
libSceAudioPropagation fix(audio): bind singular propagation path setter as unsupported 2026-10-10 03:50:02 +02:00
libSceAudiodec fix(audiodec): take the M4AAC raw channel layout from the stream 2026-10-08 17:29:46 +02:00
libSceAudiodec.native fix(audiodec): build libSceAudiodec.native from the libSceAudiodec sources 2026-10-06 17:48:38 +02:00
libSceAvPlayer fix(avplayer): use precise Windows notified waits for EOF polling 2026-10-11 11:20:24 +02:00
libSceAvPlayer.native refactor(libSceAvPlayer): build libSceAvPlayer.native from the shared Export.cpp 2026-10-07 06:19:46 +00:00
libSceBluetoothHid feat(libSceBluetoothHid): add Bluetooth HID with no devices attached 2026-10-08 15:30:58 +13:00
libSceCdlgG2P feat(libs): run the G2P and VR setup dialogs as common dialogs without UI 2026-10-10 22:53:48 +00:00
libSceCdlgPlayerReview feat(libSceCdlgPlayerReview): add the player review dialog 2026-10-07 22:07:28 +03:00
libSceCesCs build(libs): strip the MinGW static runtime flags once for all libraries 2026-10-07 10:10:38 +00:00
libSceCommonDialog feat(libs): define vabi macros + add to declarations 2026-09-10 08:07:03 +03:00
libSceContentDelete fix(content): export the content calls PPSA06465 imports 2026-10-11 09:23:39 +02:00
libSceContentExport fix(content): export the content calls PPSA06465 imports 2026-10-11 09:23:39 +02:00
libSceContentSearch fix(content): export the content calls PPSA06465 imports 2026-10-11 09:23:39 +02:00
libSceConvertKeycode feat(libs): name the PPSA23566 stubs from the shadPS4 NID list and implement sleep 2026-10-06 17:28:39 -05:00
libSceErrorDialog build(libs): strip the MinGW static runtime flags once for all libraries 2026-10-07 10:10:38 +00:00
libSceFiber Merge pull request #283 from SP4C3B4R-8/fix/fiber-windows-stack 2026-10-07 22:25:25 +02:00
libSceFont fix(font): throw where the writing line error codes come from the PS4 module only and accept attribute 0 2026-10-11 09:41:52 +02:00
libSceFont-module fix(font): build PS5 module-named font libraries 2026-09-29 10:36:48 +10:00
libSceFont.native feat(font): port shadPS4's sceFont and sceFontFt on FreeType 2026-09-28 16:45:30 +13:00
libSceFontFt feat(font): implement sceFontGetFontGlyphsCount and sceFontGetCharGlyphCode 2026-10-06 09:23:44 +02:00
libSceFontFt-module fix(font): build PS5 module-named font libraries 2026-09-29 10:36:48 +10:00
libSceGameLiveStreaming feat(libs): implement sceGameLiveStreamingGetCurrentStatus2 2026-10-09 23:56:40 +02:00
libSceGameUpdate build(libs): strip the MinGW static runtime flags once for all libraries 2026-10-07 10:10:38 +00:00
libSceHmd test(hmd): register disconnected-device tests 2026-10-09 17:47:28 +00:00
libSceHmd2 fix(exports): drop the sceNpWebApi2GetMemoryPoolStats stub and register the test with the shared guest tests 2026-10-11 11:07:03 +02:00
libSceHttp fix(http): retain request status callbacks with the guest ABI 2026-10-11 07:36:46 +02:00
libSceHttp2 fix(libSceHttp2): make sceHttp2WebSocketSetPingInterval throw, document under unknown function info 2026-10-11 10:06:26 +02:00
libSceIme feat(libSceIme): implement sceImeGetPanelPositionAndForm 2026-10-09 23:36:28 +02:00
libSceImeBackend feat(libs): throw not impl ex in every stub 2026-09-06 15:05:04 +03:00
libSceImeDialog feat(runtime): timed waits, sync primitive fixes, heap and RTC fixes, unattended-run switches 2026-09-26 19:00:39 -07:00
libSceJobManager fix(libSceJobManager): count a wait before serialising it and close under the lock 2026-10-11 07:40:37 +02:00
libSceJpegDec build(libs): strip the MinGW static runtime flags once for all libraries 2026-10-07 10:10:38 +00:00
libSceJpegEnc build(libs): strip the MinGW static runtime flags once for all libraries 2026-10-07 10:10:38 +00:00
libSceJson2 fix(exports): export the calls PPSA01530, PPSA23827 and PPSA13356 import 2026-10-11 11:07:03 +02:00
libSceKeyboard build: route system dependency include paths and pin the shader cache to package versions 2026-10-11 10:18:23 +02:00
libSceLibcInternal feat(libkernel): implement getcontext, setcontext and makecontext 2026-10-11 13:00:38 +03:00
libSceLoginDialog build(libs): strip the MinGW static runtime flags once for all libraries 2026-10-07 10:10:38 +00:00
libSceMbus feat(libSceMbus): add the device service with no devices attached 2026-10-08 15:30:58 +13:00
libSceMouse build: route system dependency include paths and pin the shader cache to package versions 2026-10-11 10:18:23 +02:00
libSceMsgDialog feat(libSceMsgDialog): real dialog state machine, auto-answer without UI 2026-09-28 13:28:49 +03:00
libSceMsgDialog.native build(libs): strip the MinGW static runtime flags once for all libraries 2026-10-07 10:10:38 +00:00
libSceNet fix(exports): export the calls PPSA01530, PPSA23827 and PPSA13356 import 2026-10-11 11:07:03 +02:00
libSceNetCtl refactor(cmake): add local library configs and move test definitions 2026-10-01 12:44:01 +03:00
libSceNetCtlApDialog feat(libs): Deathloop loading support (Ampr, NetCtlApDialog, Party + stubs) 2026-10-09 20:11:35 +02:00
libSceNgs2 build(libs): strip the MinGW static runtime flags once for all libraries 2026-10-07 10:10:38 +00:00
libSceNgs2.native perf(libSceNgs2.native): parse waveform files without reading their samples 2026-10-11 02:29:13 +02:00
libSceNpAuth feat(libs): offline services GTA V reaches in Story Mode 2026-10-01 23:21:54 +02:00
libSceNpCommerce feat(libs): name the PPSA23566 stubs from the shadPS4 NID list and implement sleep 2026-10-06 17:28:39 -05:00
libSceNpEntitlementAccess feat(libSceNpEntitlementAccess): declare sceNpEntitlementAccessGetGameTrialsFlag 2026-10-11 23:50:45 +13:00
libSceNpGameIntent feat(libs) libSceNpGameIntent impl + refactor NpUniversalDataSystem 2026-09-12 18:53:36 +03:00
libSceNpManager docs(npmanager): name ZVZ++68nNI8 sceNpGetSandboxInfo (throwing stub), imported by PPSA28416 2026-10-11 00:15:48 +02:00
libSceNpPartner001 refactor(libSceNpPartner001): name the EA access exports 2026-10-09 12:57:50 -03:00
libSceNpSessionSignaling feat(libs): provide the exports PPSA01289 imports that no library has 2026-10-09 02:42:57 -04:00
libSceNpTrophy2 test(libSceNpTrophy2): cover sceNpTrophy2ShowTrophyList, take the context argument 2026-10-11 13:08:03 +02:00
libSceNpUniversalDataSystem fix(libs): ex from libc prx: unwind for catch fix (mingw) 2026-09-13 19:21:31 +03:00
libSceNpUtility feat(libs): offline services GTA V reaches in Story Mode 2026-10-01 23:21:54 +02:00
libSceNpWebApi2 feat(libSceNpWebApi2): export sceNpWebApi2PushEventAbortHandle 2026-10-11 11:43:35 +02:00
libSceOpusCeltDec fix(opus): export the libSceOpusCeltDec module 2026-10-11 07:10:03 +09:00
libSceOpusDec feat(opus): implement 48 kHz libSceOpusDec 2026-10-09 19:24:56 +04:00
libScePad fix(libScePad): export scePadUnknown_n3kSX62fgNo under its NID 2026-10-11 11:07:03 +02:00
libScePlayGo docs(libScePlayGo): record where the chunk set comes from 2026-10-11 12:30:52 +02:00
libScePlayGoDialog build(libs): strip the MinGW static runtime flags once for all libraries 2026-10-07 10:10:38 +00:00
libScePlayerInvitationDialog build(libs): strip the MinGW static runtime flags once for all libraries 2026-10-07 10:10:38 +00:00
libScePlayerSelectionDialog feat(libs): offline services GTA V reaches in Story Mode 2026-10-01 23:21:54 +02:00
libScePngDec build(libs): strip the MinGW static runtime flags once for all libraries 2026-10-07 10:10:38 +00:00
libScePngEnc build(libs): strip the MinGW static runtime flags once for all libraries 2026-10-07 10:10:38 +00:00
libScePosixForWebKit feat(libScePosixForWebKit): implement arc4random 2026-10-11 11:14:30 +00:00
libSceProprietaryVoiceChatHelperPrx feat(libs): name the PPSA23566 stubs from the shadPS4 NID list and implement sleep 2026-10-06 17:28:39 -05:00
libScePsml feat(libScePsml): build libScePsml from the libScePsml_debug source 2026-10-09 20:25:55 +02:00
libScePsml_debug feat(psml): declare scePsmlMfsrCreateContext1300 and scePsmlMfsrGetDispatchMfsrPacket1300 2026-10-10 12:42:01 -05:00
libSceRandom build(libs): strip the MinGW static runtime flags once for all libraries 2026-10-07 10:10:38 +00:00
libSceRazorCpu Merge pull request #1084 from MathiasDevelopes/claude/mingw-link-flags 2026-10-08 09:24:20 +13:00
libSceRemoteplay style: drop the branch's code comments per CONVENTIONS.md 2026-09-29 21:25:29 +03:00
libSceRtc fix(rtc): floor pre-epoch timestamps for timezone lookup 2026-10-10 09:28:30 +08:00
libSceRudp feat(libSceRudp): implement context query calls 2026-10-11 11:07:33 +00:00
libSceSaveData fix(libkernel): flush only the paths the guest changed in sceKernelSync on Windows 2026-10-08 08:27:22 +00:00
libSceSaveData.native fix(savedata): export sceSaveDataCancel 2026-10-10 21:22:48 +13:00
libSceSaveDataDialog feat(savedata): mount aliasing, wildcard search, memory slots, async events 2026-09-28 12:48:09 +03:00
libSceSaveDataDialog.native fix(savedata): keep progress dialogs running until closed 2026-10-08 01:37:34 +03:00
libSceShare feat(share): answer sceShareSetContentParamForApplicationTitle 2026-10-09 21:02:01 +09:00
libSceShare.native feat(libs): agc packet builders, savedata memory, offline service stubs 2026-09-25 16:27:49 -07:00
libSceSharePlay fix(libSceSharePlay): fill the connection info with no Share Play session 2026-10-11 17:14:21 +09:00
libSceSigninDialog feat(libs): offline services GTA V reaches in Story Mode 2026-10-01 23:21:54 +02:00
libSceSsl fix(net): return the console's errors from the memory pool stats calls 2026-10-11 09:49:13 +02:00
libSceSysmodule fix(libSceSysmodule): recognize Trophy2 module id 2026-10-11 11:35:37 +02:00
libSceSystemGesture fix(libSceSystemGesture): report no touch events for the primitive and recognizer calls 2026-10-11 02:01:32 +02:00
libSceSystemService feat(libSceSystemService): export sceSystemServiceLaunchApp 2026-10-11 03:48:47 -04:00
libSceTextToSpeech2 feat(libSceTextToSpeech2): report the speech engine as unavailable 2026-10-08 15:31:10 +13:00
libSceUlt fix(exports): export the calls PPSA01530, PPSA23827 and PPSA13356 import 2026-10-11 11:07:03 +02:00
libSceUsbd feat(libSceUsbd): implement transfer allocation and event handling for the no-device path 2026-10-11 09:40:14 +00:00
libSceUserService build(libs): strip the MinGW static runtime flags once for all libraries 2026-10-07 10:10:38 +00:00
libSceVdecsw feat(libs): implement libSceVdecsw on top of libSceVideodec2 2026-10-09 13:28:48 +02:00
libSceVideoOut fix(videoout): build TimedWait into libSceVideoOut instead of importing it from libkernel 2026-10-11 11:19:05 +02:00
libSceVideoRecordingP fix(libSceVideoRecordingP): correct the sceVideoRecordingOpen signature 2026-10-06 18:29:36 -03:00
libSceVideodec2 feat(libSceVideodec2): decode HEVC and VP9 2026-10-09 01:27:15 +01:00
libSceVoice feat(libSceVoice): track the port mute flag 2026-10-10 19:59:15 +02:00
libSceVoiceChat feat(libs): provide the exports PPSA01289 imports that no library has 2026-10-09 02:42:57 -04:00
libSceVoiceQoS fix(voiceqos): return the console's sceVoiceQoSInit argument errors 2026-10-07 23:34:15 -03:00
libSceVrSetupDialog feat(libs): run the G2P and VR setup dialogs as common dialogs without UI 2026-10-10 22:53:48 +00:00
libSceVrTracker2 feat(libSceHmd2): add PS VR2 modules that report the runtime as unavailable 2026-10-07 19:58:01 -04:00
libSceWebBrowserDialog fix(libs): rename loader stubs to recomputed real names, drop clashing ones 2026-10-09 20:12:31 +02:00
libSceZlib fix(zlib): inherit DWARF unwinding in Windows tests 2026-10-10 02:03:59 +04:00
libc Merge pull request #3478 from fable-void/pr/macos-write-watch-remap 2026-10-11 13:52:58 +02:00
libkernel fix(libkernel): count guest module segments against the flexible memory budget 2026-10-11 17:48:05 +02:00
libkernel_sys Merge pull request #3481 from sypher69/fix/fchdir-search-permission 2026-10-11 14:09:47 +02:00
libkernel_web refactor(libkernel): merged dup pthread functions from _sys and _web 2026-09-13 16:24:42 +03:00
ulobjmgr build(libs): strip the MinGW static runtime flags once for all libraries 2026-10-07 10:10:38 +00:00