Recompile an x64 caller through a named PE import and verify loader errors #27
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/27"
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 R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T09:55:02Z.
Fixes #24. Decode an FF 15 RIP-relative call, match the computed slot against ordinary PE import records and verify the named provider export against the configured fixture ABI. Compile the generated caller with a DLL import and link its provider's import library. Both linked call sites are checked against their own IAT slots.
The Windows fixture compares the original and translated caller on 249 input pairs against an independent arithmetic reference, including the arguments written by the provider, guarded output, RBX/RSI and returns. Replacing only the provider changes the return on all 249 pairs. Separate processes check loader errors 126 for a missing DLL and 127 for a missing export on both callers. Static controls reject both unresolved providers and a displacement one byte into an IAT entry.
Local
ctest --preset dev --no-tests=error -E '_hardware$'completed with 37 passes and one WARP wave64 capability skip. README and experiment notes document the measured scope and reproduction command. Refs #26 for ordinal-only imports.