pe: start EXEs with bundled DLL dependencies #930

Manually merged
github merged 1 commit from gh-pr/930/head into gh-pr/930/base 2026-11-26 22:29:11 +00:00
Owner

@⁠R0Y00 on GitHub · 2026-11-23 17:40 UTC · original
R0Y00:codex/pe-package-startup → main · +187 −0 · 3 files · 1 commits · merged 2026-11-23 17:59 UTC

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:

ctest --preset release --no-tests=error -R '^cpu_native_startup$' --output-on-failure

1/1 passed.

**@⁠R0Y00** on GitHub · 2026-11-23 17:40 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/930) `R0Y00:codex/pe-package-startup` → `main` · +187 −0 · 3 files · 1 commits · merged 2026-11-23 17:59 UTC 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: ```powershell ctest --preset release --no-tests=error -R '^cpu_native_startup$' --output-on-failure ``` 1/1 passed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:29:09 +00:00
github manually merged commit a33eff8205 into gh-pr/930/base 2026-11-26 22:29:11 +00:00
Author
Owner

@⁠R0Y00 on GitHub · 2026-11-23 17:51 UTC · original

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.

**@⁠R0Y00** on GitHub · 2026-11-23 17:51 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/930#issuecomment-7109283134) 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.
This discussion has been locked. Commenting is limited to contributors.
No description provided.