pe: cover delay-load and ordinal imports #1051
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1058"
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 lambirou on 2026-11-23T23:51:18Z.
Change
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