AnyPS5/core/relinker
StarMrGamer 1a45dee292 fix(relinker): resolve the syscall number through prefixed instructions
The lookback classifies preceding instructions at their decoded opcode
offset, the same place the forbidden-instruction check looks since #1935,
so a legacy-prefixed mov rax, imm or mov r10, rcx is recognized. The REX
byte stays part of the patterns, so mov r8 and mov r8d cannot masquerade
as rax loads. Anything unrecognized still stops the inference.

Adds prefixed fixtures to both test suites: a prefixed constant stub that
must report syscall number 9, and a prefixed clobbered stub that must
report no number.

AI-assisted: yes. The submitting author is responsible for every changed line.
2026-10-11 00:27:44 +02:00
..
cli feat(relinker): convert for Rosetta with --to-rosetta 2026-10-10 22:46:45 +03:00
codegen feat(relinker): convert for Rosetta with --to-rosetta 2026-10-10 22:46:45 +03:00
domain/include/domain fix(relinker): discover required guest module identities 2026-10-09 13:53:48 +02:00
elfpatcher Merge pull request #2594 from morten-holm/pr/macos-clear-pie 2026-10-10 11:15:15 +02:00
io fix(relinker): support non-ASCII input paths on Windows 2026-10-10 17:22:07 +00:00
relinker fix(relinker): resolve the syscall number through prefixed instructions 2026-10-11 00:27:44 +02:00
CMakeLists.txt fix(relinker): report the syscall number of a forbidden syscall instruction 2026-10-11 00:27:44 +02:00
main.cpp feat(relinker): convert for Rosetta with --to-rosetta 2026-10-10 22:46:45 +03:00