Recompile an x64 caller through a named PE import and verify loader errors #27
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!27
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/27/head"
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?
@R0Y00 on GitHub · 2026-11-21 09:55 UTC · original
R0Y00:codex/cpu-import-call→main· +251 −25 · 9 files · 2 commits · merged 2026-11-21 09:59 UTCFixes #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.