pe: start EXEs with bundled DLL dependencies #930
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!930
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/930/head"
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?
@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 UTCRefs #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.
@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.