fix(libkernel): expose earlier guest modules to Mach-O imports #8481
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8481"
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 ycarogabriel-lgtm on 2026-10-20T13:26:49Z.
What
On macOS, load guest Mach-O modules with host
RTLD_GLOBALso a later relinked module can bind an import from a dependency loaded earlier. Preserve the guest'sRTLD_LOCALbehavior fordlsym(RTLD_DEFAULT, ...)by checking the owning dyld image before returning a symbol. Linux and Windows paths keep their existing flag handling.This extracts the module-visibility change and its focused dynamic-loader check from the former integration PR #7332. The known host limitation is recorded in the libkernel technical-debt entry.
Tested
ctest --test-dir build-mac -R '^guest_dynamic_loader$'passed at integration headb5fddb65c, which contains this change. The full non-GPU suite on its preceding integration head passed 842/843; the coldpatched_librariestimeout passed alone.main;python3 tools/check_conventions.py --base origin/mainpassed. A standalone macOS build onmainis blocked by its unchangedlibc/General.cppuntil #4627 (Apple time and stat fields) is integrated. The test was not rerun standalone on this branch.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)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-20T13:27:08Z.
Thank you for your contribution! Authors with no pull requests merged into
maincan have 1 open pull request at a time, authors with at least 1 merged can have 20, and from 20 merged there is no limit. This PR has been automatically closed and labeled "open PR limit" because that limit was reached. This is not a judgment of the quality of your changes: reopen it once one of your open pull requests is merged or closed.Pull request closed