M1: synthetic PE32+ loader and GDK ABI differential fixtures #2

Open
opened 2026-11-26 21:00:22 +00:00 by github-bot · 2 comments
Owner

@⁠ProhorovIlja on GitHub · 2026-11-21 21:13 UTC · original

Build standalone, permissively redistributable Windows x64 fixtures for named/ordinal/delay imports, PE relocations, forwarded DLL exports, TLS callbacks, unwind/SEH, memory protection and exit behavior.

Compare Microsoft loader behavior with explicit shim-loading techniques without any commercial executable. Produce deterministic JSON expected/actual reports.

References (no source code imported):

Acceptance: Windows native tests PASS on MSVC and Clang where available; negative malformed-input cases reject safely. No proprietary game files or SDK binaries.

**@⁠ProhorovIlja** on GitHub · 2026-11-21 21:13 UTC · [original](https://github.com/ProhorovIlja/NativeX-Runtime/issues/2) Build standalone, permissively redistributable Windows x64 fixtures for named/ordinal/delay imports, PE relocations, forwarded DLL exports, TLS callbacks, unwind/SEH, memory protection and exit behavior. Compare Microsoft loader behavior with explicit shim-loading techniques without any commercial executable. Produce deterministic JSON expected/actual reports. References (no source code imported): - https://github.com/ivall/xcl - https://github.com/Ender-0001/GDKScarlett - https://github.com/Freminet/ScarlettX Acceptance: Windows native tests PASS on MSVC and Clang where available; negative malformed-input cases reject safely. No proprietary game files or SDK binaries.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:00:22 +00:00
Author
Owner

@⁠ProhorovIlja on GitHub · 2026-11-22 01:28 UTC · original

2026-11-22 update — partial acceptance, not issue closure. PR #71 added a strict read-only C++17 PE32+ symbol inventory for ordinary/delayed named and 16-bit ordinal imports (including OriginalFirstThunk/IAT fallback), with bound-checked malformed-intake negatives. Both Linux/Windows CI passed (run 44970507886); no proprietary EXE is involved. PR #69 also source-built a sixth optimized CRT-free x64 PE probe with verified .bss/.rdata, inline __stosb/__movsb and expected exit 47 through an independently source-built pinned loader (run 44969822744). Outstanding: actual GDK ABI import coverage, TLS callback order, unwind/SEH, shared DLL lifetime, loader protection parity and any title-specific Xbox Game Core execution. The existing Linux parser merely inventories PE metadata; it never executes the file.

**@⁠ProhorovIlja** on GitHub · 2026-11-22 01:28 UTC · [original](https://github.com/ProhorovIlja/NativeX-Runtime/issues/2#issuecomment-7072227027) 2026-11-22 update — **partial acceptance, not issue closure**. [PR #71](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/pull/71) added a strict read-only C++17 PE32+ symbol inventory for ordinary/delayed named and 16-bit ordinal imports (including OriginalFirstThunk/IAT fallback), with bound-checked malformed-intake negatives. Both Linux/Windows CI passed ([run 44970507886](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/actions/runs/44970507886)); no proprietary EXE is involved. [PR #69](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/pull/69) also source-built a sixth optimized CRT-free x64 PE probe with verified .bss/.rdata, inline __stosb/__movsb and expected exit 47 through an independently source-built pinned loader ([run 44969822744](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/actions/runs/44969822744)). **Outstanding:** actual GDK ABI import coverage, TLS callback order, unwind/SEH, shared DLL lifetime, loader protection parity and any title-specific Xbox Game Core execution. The existing Linux parser merely inventories PE metadata; it never executes the file.
Author
Owner

@⁠ProhorovIlja on GitHub · 2026-11-22 01:48 UTC · original

2026-11-22 new independently verified native Windows x64 loader/ABI prerequisites (partial issue progress, not full Xbox Game Core compatibility):

  • PR #76, CI 44972433360: original PE32+ read-only .pdata / x64 RUNTIME_FUNCTION inventory, 12-byte records, mapped bounds, sorted non-overlapping range checks and malformed-negative cases. Windows 40 CTests no failures (2 optional skips), Linux17/17.
  • PR #77, CI 44972558046: actual Windows RtlAddFunctionTable/RtlLookupFunctionEntry/RtlDeleteFunctionTable registration; 34-byte original native x64 code in W^X memory raises exception across dynamic unwind metadata and real MSVC __try/__except catches it. The new SEH CTest passed on standard Windows runner.
  • PR #78, CI 44972992846: independently parses IMAGE_TLS_DIRECTORY64 absolute VA fields for raw template/index/zero fill and bounded null-terminated callback pointer array, with eight corruption negatives, without invoking callbacks.
  • PR #79, CI 44972958790: separate original DLL & native Windows LoadLibrary host demonstrate TLS callback-before-DllMain order, real __declspec(thread) main/worker isolation, thread attach and process detach lifecycle. Windows 42 CTests no failures (2 optional hardware skips).
    Outstanding: actual Xbox title GDK import coverage and behavior, manual loader TLS/SEH registration equivalence, chained/scope unwind interpretation, dynamic TLS and exception behavior in source-built GDK sample, retail title execution and physical GPU. No leaked game files, GPL code imports, CPU emulation or background monitoring introduced.
**@⁠ProhorovIlja** on GitHub · 2026-11-22 01:48 UTC · [original](https://github.com/ProhorovIlja/NativeX-Runtime/issues/2#issuecomment-7072462867) 2026-11-22 **new independently verified native Windows x64 loader/ABI prerequisites** (partial issue progress, not full Xbox Game Core compatibility): - [PR #76](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/pull/76), [CI 44972433360](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/actions/runs/44972433360): original PE32+ read-only .pdata / x64 RUNTIME_FUNCTION inventory, 12-byte records, mapped bounds, sorted non-overlapping range checks and malformed-negative cases. Windows 40 CTests no failures (2 optional skips), Linux17/17. - [PR #77](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/pull/77), [CI 44972558046](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/actions/runs/44972558046): actual Windows RtlAddFunctionTable/RtlLookupFunctionEntry/RtlDeleteFunctionTable registration; 34-byte original native x64 code in W^X memory raises exception across dynamic unwind metadata and real MSVC __try/__except catches it. The new SEH CTest passed on standard Windows runner. - [PR #78](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/pull/78), [CI 44972992846](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/actions/runs/44972992846): independently parses IMAGE_TLS_DIRECTORY64 absolute VA fields for raw template/index/zero fill and bounded null-terminated callback pointer array, with eight corruption negatives, without invoking callbacks. - [PR #79](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/pull/79), [CI 44972958790](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/actions/runs/44972958790): separate original DLL & native Windows LoadLibrary host demonstrate TLS callback-before-DllMain order, real __declspec(thread) main/worker isolation, thread attach and process detach lifecycle. Windows 42 CTests no failures (2 optional hardware skips). **Outstanding:** actual Xbox title GDK import coverage and behavior, manual loader TLS/SEH registration equivalence, chained/scope unwind interpretation, dynamic TLS and exception behavior in source-built GDK sample, retail title execution and physical GPU. No leaked game files, GPL code imports, CPU emulation or background monitoring introduced.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/ProhorovIlja--NativeX-Runtime#2
No description provided.