2 Commits
Author SHA1 Message Date
tkcm01andClaude Opus 5.5 2fd0c1b8fa test(libkernel): describe the flexible memory fixture's segment on macOS
guest_flexible_memory_declared loads a host-built .guest.prx fixture
whose 512 MiB array must count against the flexible memory budget. On
macOS, dl_iterate_phdr reports only images that carry the relinker's
__APS5DATA,__meta program headers, which every relinked guest module
has but the host-built fixture does not. GuestImageSegmentBytes left
the fixture out and the test failed at its budget check.

On macOS the fixture now fills its own __APS5DATA,__meta at load with
one PT_LOAD header for the array, as ProcessParametersFixture does for
the test program. Linux and Windows are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-22 21:17:02 -04:00
Adelmo Junior 72211b70fe fix(kernel): honor the declared flexible memory budget
Read the optional aligned budget from param.json and apply it consistently to configured, available and mapped flexible memory. Add parser and allocation regression coverage.
2026-10-13 20:13:14 -03:00