feat(relinker): support Intel trampolines in guest modules #151
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/151"
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 MartinCajiao on 2026-09-29T16:10:02Z.
What
Allow
--to-intelto emit out-of-line trampolines for supported AMD-only instructions in guest PRX modules fromsce_moduleorsce_modules. Windows reuses the executable PE trampoline builder; Linux appends stubs to the guest module's executable PT_LOAD segment. Both paths validate instruction bytes and rel32 jump ranges before patching.This fixes the previous failure where the relinker rejected any guest module that needed a trampoline. It does not add support for AMD-only instructions that the converter cannot lower.
Tested
relinkertarget from currentmain.ctest -R 'amd64_only|guest_intel' --output-on-failure: 3/3 passed.Checklist
main; no other open PR implements this guest PRX trampoline path.mdfiles or images addedImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-09-30T16:12:57Z.
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)core/relinker/CMakeLists.txtL159core/relinker/CMakeLists.txtL159