Phase 1: bind delay-load imports at map time #1
Labels
No labels
area: audio
area: d3d11
area: d3d12
area: gdk
area: gui
area: kernel
area: loader
area: shaders
area: video
area: winrt
bug
compat
console: series-xs
console: xbox-one
duplicate
enhancement
graphics-glitch
needs-log
needs-repro
not-a-dump
regression
status: boots
status: in-game
status: intro
status: menu
status: nothing
status: playable
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/sammwyy--xvalkyrie#1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@FZNull on GitHub · 2026-11-22 07:15 UTC · original
Roadmap Phase 1 lists "Delay-load imports" as unchecked.
src/loader/image.cpptoday records delay modules only underdelay_load_modules_untouched, while regular import slots are bound from the host resolver with an unresolved placeholder for the rest.Proposal
pe::inspectalready reportsdelay_importsentries withmodule,iat_rvaandsymbols), bind the IAT slots at map time exactly like the regular imports: write the resolved value from the resolver, or the same unresolved placeholder.slots,resolved,unresolvedcounts and per-symbol entries, keeping the existing status for descriptors without a name table.__delayLoadHelperpath is out of scope for now.tests/loader_image.cppusing the existing delay-load corpus fixture (synthetic), assert bound slots and counts, add a missing-symbol control, and keep a negative control where the resolver resolves nothing.Layout and the RVA attribute bit follow the public Microsoft PE Format documentation for delay-load import descriptors. No game files, dumps or SDK content involved.
I can send a PR from a fork; opening this first per CONTRIBUTING. Questions welcome on whether eager binding at map time is the behavior you want.