pe: start EXEs with bundled DLL dependencies #923
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/930"
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-23T17:40:39Z.
Refs #870 and #165.
Reuse the package import report to resolve explicit external providers before any guest attach, then load bundled DLLs in dependency order and start the EXE through pe_map. Release mappings in reverse order. The command can also report external bindings without mapping guest images.
The existing two-DLL startup test now exercises the package runner, comparing its dependency order, entry trace and exit status with the Windows loader. Withholding the system provider must fail before any guest output.
Windows x64, MSVC 19.51, Release:
1/1 passed.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T17:51:25Z.
I reran the source-built startup fixture in Windows x64 Release. Normal startup produced abtew2w3m1 and 0x103020e. The package runner also returned atew2w3m1 and 0x1030200 when I substituted the source-built DLL without its initializer. With an unavailable mapper, preflight reported 15 missing imports with no provider and 15 resolved with the explicit system provider, with no guest trace in either case. The execution check rejects unresolved external providers before attachment.