Skip to content

test(relinker): execute the guest Intel trampolines end to end - #1774

Merged
oneandonlydean merged 1 commit into
boykopovar:mainfrom
011010:test/guest-intel-trampolines-e2e
Oct 9, 2026
Merged

oneandonlydean merged 1 commit into
boykopovar:mainfrom
011010:test/guest-intel-trampolines-e2e

Conversation

@011010

@011010 011010 commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

What

The --to-intel guest module trampolines were covered only by a synthetic test that reads the patched bytes. GuestIntelTrampolinesTests relinks a main executable next to a sce_module/sample.prx whose SSE4a sites exercise EXTRQ and INSERTQ, maps the converted module and calls the guest function, so the trampoline, its stub and the return path run and their results are checked. ElfFixture.hpp gains MakeModule, which builds the module layout the relinker requires (its own read/write segment carrying the string, symbol, hash and relocation tables).

Tested

Linux container (gcc 13, x86-64), relinker-only build (-DANYPS5_RELINKER_ONLY=ON -DBUILD_TESTING=ON): to_intel_linux_stubs, guest_intel_trampolines and the new guest_intel_trampolines_execution all pass. No game title was run.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes

@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

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.

Pull request Conflicting files (lines on main) Same exports Same new files
#2001 core/relinker/CMakeLists.txt L287-298
core/relinker/relinker/tests/ElfFixture.hpp L1-129

@oneandonlydean
oneandonlydean merged commit b38abc0 into boykopovar:main Oct 9, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants