pe: cover delay-load and ordinal imports #1058
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!1058
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1058/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?
@lambirou on GitHub · 2026-11-23 23:51 UTC · original
lambirou:pe/delay-load-ordinals→main· +120 −0 · 4 files · 1 commits · merged 2026-11-24 00:10 UTCChange
Add one source-built PE control for the three import forms requested by XCL-03 and a named
missing-binding control.
ordinal import.
tools.pe_inventory.import_tablesreturns exactly the four expected(kind, module, symbol)rows, including#77and#9.intake_exe.import_routespreserves the candidate route fields for all four rows withoutclaiming resolution.
routing_failuresis empty for the HLE and stub modules.pe_package_preflight.summarizeandpe_run_package.planwith aprovider that exports
named_valueand ordinal#77. A missing name and a missing ordinalboth produce
bundled_export_not_foundand the exact diagnosticapp.exe: intake_provider.dll!<symbol>: bundled_export_not_found.No resolver or route table is duplicated; the test exercises the merged XCL-01/XCL-02 paths.
Verification
out\pe-env\Scripts\python.exe -B tests\intake\import_forms_check.pynamed, ordinal and delay-load import form checks passed.out\pe-env\Scripts\python.exe -B tests\compat_report_check.pycompat report synthetic checks passed.out\pe-env\Scripts\python.exe -B tests\intake\routing_check.pyintake routing synthetic checks passed.docs_links_check.py:Self-test passed.,Checked 15 Markdown files and 237 links..git diff --check origin/main...HEAD: clean.cpu_native_delay,cpu_aot_ordinal_importand
pe_package_ordinal_plan; this worktree has no built CMake tree. Those tests alreadyexercise the mapped/delay paths, so no mapping change was needed.
Evidence and follow-up
pe/delay-load-ordinals, head083c95c, based onb0fd051.tests/compat_report_check.build_image; it is not loaded orexecuted. The provider surface is checked against
tests/intake/provider.def.docs/experiments.mdrecords the four-form fixture and the named refusal.
output is used.
forms to the C++
pe_mapfixture if it needs independent coverage.Checklist