tests: reserve a fresh preferred base for the relocation-free fixture #1033
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1040"
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-23T22:34:32Z.
Refs #77 and #1026.
The Windows /O2 run for #1026 failed in the shared
cpu_native_reloc_freetest before it loaded the image: the fixed preferred address could not be reserved (Win32 487). Each child now reserves a system-selected range, proves the reservation covers the image, and sets that base only in its temporary source-built DLL copy. The free controls release the reservation immediately before native loading. The stripped case now also proves that the image executes when the range is free, and still requires exact Win32 487 and the existing mapper rejection when reserved.Windows 11 26200.9974, MSVC 19.51, Release:
ctest --test-dir out/verify-release --no-tests=error --output-on-failure --repeat until-fail:10 -R '^cpu_native_reloc_free$'passed 10/10. In every run the four relocated calls matched all 249 pairs; the stripped native free and reserved controls and exact pe_map refusal passed. In a separate synthetic setup, pre-reserving the original preferred address made a second fixed reservation fail with Win32 487, while the new setup reserved and encoded a different range.