- resolve_imports() rewrites PE import records in-place:
- Variable slots: 0xD000BEEF | (ordinal & 0xFFF) << 16
- Thunk stubs: li r3, 0 / li r4, <ordinal> / mtspr CTR, r11 / bctr
- New -r/--resolve-imports flag on the extract command
- Without the flag, extraction is unchanged (byte-for-byte identical)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- New src/exports.rs: embeds doc/xbox360_exports.md via include_str!
and lazily parses it into a lookup table (OnceLock). Covers 2,913
exports across xboxkrnl.exe, xam.xex, and xbdm.xex.
- New src/imports.rs: decodes import records from extracted PE images
by reading the u32 at each import address, extracting record type
(variable/thunk) and ordinal, and resolving against the export DB.
- inspect command now shows a full resolved imports table with names.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>