cpu: run a relocated global read/write through the three-way EXE chain #445
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/451"
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-22T04:22:59Z.
Refs #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.