fix(relinker): record declared host imports in guest registries #5598
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5598"
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 JJenkx on 2026-10-14T00:49:42Z.
What
Bundled-module registries omit imports with a declared host owner, hiding missing system-library support from import audits. Record those imports with their library and relocation target. Keep actual guest bindings out of the host registry and omit R_X86_64_NONE relocations. Binding selection and generated module images are unchanged.
Tested
4414bca7217d, containing mainfeddf7f4c654: Linux 1,043 passed / 46 skipped; Windows 720 passed / 389 skipped. All Linux, Windows and macOS relinker jobs pass. Expected skips remain unvalidated.ce5c8395333. CI above remains tied to its recorded source/base. Conventions and whitespace checks pass.426eef946f9aborted inguest_ampr_threads; its failed job passed on retry. That scheduling remains unisolated. Separate stack-retirement work is #5597; this registry change does not require it.Checklist
Latest conflict refresh
Published head
48685f40e1ff769f4fbbe46d63d0170fcbf680eecontains mainc9ee728a7c4086060efaf2f9e256ef2fbc4e2de5. The sole conflict was an additive debt entry indocs/dev/debt/relinker.md; both the guest-import registry note and main's Windows fixed-base note are preserved. Source files merge cleanly. The relinker-only Release build passes, all 158 relinker checks pass with no skips, and conventions/whitespace checks pass. Fresh full-platform CI now passes at the head/base recorded below; earlier results retain their original scope.Verified fresh full CI
Workflow 38516673708 now passes topic
48685f40e1ff769f4fbbe46d63d0170fcbf680eeon basec9ee728a7c4086060efaf2f9e256ef2fbc4e2de5. Linux: 1062 passed/46 expected skips of 1108; Windows: 733 passed/398 expected skips of 1131. Relinker jobs also pass without skips on Linux (158), Windows (153) and macOS (149). Head/base pins are verified in every job log. Skipped cases remain unvalidated. The branch merges cleanly into the recorded main; this confirms the debt-conflict refresh and source merge, without a title-progression claim.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-15T11:32:32Z.
Checked the registry change in
GuestModuleBuilder.cpp(declared-host imports recorded,R_X86_64_NONEskipped;systemImportsis only read for the registry, so bindings are untouched).guest_registrypasses on the merged tree and fails without the production change; relinker ctest 132/132, no skips; relinker CI green on Linux, Windows and macOS. Merging.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T11:56:41Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)docs/dev/debt/relinker.mdL8