pe: start EXEs with bundled DLL dependencies #923

Merged
R0Y00 merged 1 commit from upstream-pr/930 into main 2026-11-23 17:59:13 +00:00
R0Y00 commented 2026-11-23 17:40:39 +00:00 (Migrated from github.com)

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:

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

1/1 passed.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6565224663 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/930). Originally posted by [R0Y00](https://github.com/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: ```powershell ctest --preset release --no-tests=error -R '^cpu_native_startup$' --output-on-failure ``` 1/1 passed.
upstream-sync closed this pull request 2026-11-24 06:45:27 +00:00
R0Y00 commented 2026-11-24 06:49:25 +00:00 (Migrated from github.com)

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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7109283134 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/930#issuecomment-7109283134). Originally posted by [R0Y00](https://github.com/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.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!923
No description provided.