cpu: run a relocated global read/write through the three-way EXE chain #451
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!451
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/451/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-22 04:22 UTC · original
R0Y00:codex/exe-image-data-chain→main· +876 −20 · 10 files · 3 commits · merged 2026-11-22 04:26 UTCRefs #317. Stacked on #416. The same source-built x64 EXE goes from entry to a fixed-frame caller, then to a bound no-unwind leaf that reads and writes the image's globals, then to a DLL import. A small host binds a live, nonpreferred mapping before calling the generated entry and checks the actual stored 64-bit word before release.
The negative control changes one writable word in the input EXE, keeping the AOT binary fixed. Both selectors change observable branches, DLL arguments, output bytes and exit codes. Native Windows and pe_map use the same source image in each comparison.
Local Windows x64 MSVC, Release:
5/5 passed. The four input/state combinations gave 0x60d, 0x57, 0x57, 0x60d across all three runners. Docs include the focused reproduction.