pe: reject mixed x86 machine bindings in package preflight #987
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/994"
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 Joacoorandom on 2026-11-23T20:16:24Z.
An AMD64 EXE importing a matching export from a packaged I386 DLL previously received
bundled_export_present. Preflight now reportsbundled_machine_mismatch, records both machine types and stops that forwarder chain. The package runner rejects the result before mapping or attachment. Direct, delayed and intermediate forwarded imports are covered.Validation on Linux:
python -B tests/pe_package_preflight_check.py(11 passed),python -B tests/pe_package_ordinal_plan_check.py(3 passed), dependency-path/intake-path checks, documentation links andgit diff --check. The new regressions fail on the baseline. A source-built Clang/LLD 21.1.8 comparison reports zero failures for AMD64 EXE + AMD64 DLL and one mismatch after replacing only the DLL with its I386 build; the baseline reports zero for both.The check is limited to I386/AMD64. ARM64EC/ARM64X and other combinations remain explicitly unverified.