PE-level shape of a GDK console executable (sections, imports, no version resource) #901
Closed
opened 2026-11-23 16:45:03 +00:00 by JoshRob297
·
5 comments
No Branch/Tag specified
main
codex/indirect-large-backed-views
codex/word3-preflight-check
codex/vertex-table-two-records
codex/live-index-alias
codex/copied-vertex-buffer-srv
codex/windows-stage-test-output
codex/preserve-live-srv-retirement
codex/share-render-target-tracking
codex/sgd5-negative-offset-fixture
coverage-dashboard
codex/mesh-loose-root
codex/mesh86-cache-padding
codex/xmem-scatter-preflight
codex/mesh-depth-ps
codex/indirect-dispatch-refresh
codex/compute-container-index
codex/startup-compute-formatted-load
codex/compute-indirect-producer
codex/compute-atomic-soffset
codex/mesh-dual-handoff
codex/startup-run-sh-watcher-control
codex/queue31-page-alias
codex/indexed-indirect-compute-root
codex/typed-buffer-view-metadata
codex/translated-indexed-address-alias
codex/fixed-mesh-create-result
codex/xmem-section-lease
codex/startup-slot86-mesh-cache
codex/restore-mesh-barrier-iteration
codex/translated-indirect-upload-index
codex/xapu-completion-opt-in
codex/translated-indexed-rect
codex/translated-indexed-indirect
codex/startup-mesh-lds-integration
codex/startup-console-ms24
codex/startup-slot57-mesh-request
codex/indirect-copy-provenance
codex/present-color-producer-trace
codex/compute-dispatch-binding-trace
codex/translated-indirect-table-buffers
codex/indirect-copy-provenance-base
codex/mix-half-literal-source
codex/translated-indirect-draw
codex/xmem-scatter-diagnostics
codex/slot148-recording-upload
codex/slot70-loading-art-verified
codex/command-list-upload-arena
codex/recover-failed-command-list
codex/startup-heap-timing-notes
codex/align-audio-input-timeline
codex/synthetic-depth-export-control
codex/startup-texture1d-on-windows
codex/1629-packed-position-fixture
codex/cpu-srv-refresh
codex/stream-root-srv-draw
codex/audio-mixer-timer
codex/startup-reload-published-shader
codex/priority-integrate-1284
codex/guest-sixteen-page-record
codex/aot-placed-dxr-batch
codex/guest-directory-selection
codex/gamesave-enumerate-read
codex/readme-archive-to-pixels
codex/pe-placed-view-draw
codex/archive-directory-gpu
codex/slot133-dxr-build
codex/materialize-placed-vertex-view
codex/dstorage-directory-offsets
codex/xg-nine-bc-copy
codex/xg-slot10-bc64-arrays
codex/dxr-guest-address-readback
codex/gpu-va-high-bits
codex/clarify-diagnostic-startup-scope
codex/xg-six-levels
codex/typed-derived-blend
codex/english-legal-text-progress
codex/address-bc-4ks
codex/dstorage-bounded-file-read
codex/wide-srv-offsets-menu
codex/startup-memory-srv
codex/bound-view-tail
codex/language-selector-readback
codex/setup-menu-progress
codex/cpu-plane-refresh
codex/startup-ubyte-vertex
codex/presenter-window-selection
codex/startup-uniform-buffer-lane
codex/intro-loop-timing
codex/static-clzero-loops
codex/document-rtx-intro
codex/startup-insertq
codex/nv12-startup-texture
codex/stream-stage-draw
codex/startup-null-uav-format
codex/startup-draw-capture
codex/shorten-windows-checks
codex/dstorage-rfc1950
codex/startup-dump-fence
codex/pr1135-review-base
codex/startup-stream-requests
codex/startup-chroma-view
codex/readme-graphics-pipeline-streams
codex/static-crt-free-tls
codex/arc-140t-rtx-5080-laptop-gpu-reports
codex/main-startup-progress-entry
codex/signed-dxil-catalogue
codex/reloc-free-preferred-base
codex/quad-dpp-bit-mask
codex/raw-srv-bounds
codex/rx9070-31044-hardware-report
codex/gpu-page-source-provenance
codex/runtime-placeholder-interior
codex/gpu-copy-queue-tile-order
codex/pe-pin-external-providers
codex/xmem-placeholder-reservations
codex/xmem-shared-physical-pages
codex/pe-package-startup
codex/xmem-tools-memory-query
codex/cpu-stack-output-import
codex/pe-load-security-cookie
codex/record-three-bvh-retests
codex/cpu-rbp-frame-anchor
codex/xmem-default-startup
codex/record-rtx-3050-ti-9597
codex/docs-readme-start-here
codex/check-compute-mad24-truncation
codex/docs-discord-community
codex/bound-rcx-branch-mutants
codex/rtx5060ti-bvh-62114
codex/837-neutral-readme-disclaimer
codex/record-rtx-3070-ti
codex/title-neutral-public-wording
codex/exe-shadow-frame-submissions
codex/exe-shadow-runtime-chain
codex/readme-polish
codex/gpu-coverage-nov23
codex/spirv-minlod
codex/shadow-shim-device
codex/exe-two-shadow-frames
codex/shim-dispatch-cleanup
codex/fix-spirv-cache-probe
codex/sampler-use
codex/ballot-bit-extract
codex/packed-fma-release
codex/cpu-packed-fma-o2
codex/publish-coverage-dashboard
codex/mesh-cbv-binding-order
codex/spirv-window-fixture
codex/ps-e32-float-uint
codex/ps-cbuffer-reads
codex/fixed-profile-rescan
codex/shim-compute-integration
codex/readme-visible-coverage
codex/readme-research-navigation
codex/integrate-pr-256
codex/indexed-mesh
codex/sampled-coverage
codex/first-ms
codex/dual-ps
codex/ps-attribute
codex/compute-first
codex/ps-export
codex/readme-research-status
codex/ps-layout
codex/blast-window
codex/chart-caption
codex/reviewer-roles
codex/blast-aot
codex/archive-program
codex/crc-stream-program
codex/exe-image-data-chain
codex/local-cpu-fixture-coverage
codex/exe-bound-frame-chain
codex/exe-mapped-comparison
codex/contribution-dependencies
codex/exe-entry-aot
codex/bink-frame-heap-integration
docs/hardware-seven-reports
codex/bink-custom-heap
codex/bink-heap-callers
codex/discussions-entry-points
codex/gpu-community-batch-64
codex/ffx-scratch-writers
codex/generic-project-documentation
codex/ffx-dispatch-rcas
codex/four-windows-gpu-reports
codex/title-neutral-project-wording
codex/community-coverage-provenance
codex/rcas-packed-texels
codex/community-gpu-retests
codex/community-build-and-gpu-reports
codex/ffx-provider-loop
codex/ffx-recurrent-views
codex/ffx-recurrent-resource
codex/amd-wave64-reports
codex/ffx-backend-slots
codex/upscaler-device-init
codex/ffx-context-lifecycle
codex/ffx-version-query
codex/ffx-provider-contract
codex/typed-object-callback
codex/cpu-ordinal-import
codex/chained-cpu-ranges
codex/cpu-import-call
codex/cpu-direct-call
codex/cpu-leaf-aot
codex/community-project-status
codex/script-state-path-replay
codex/script-state-evidence
codex/bc7-resident-tail
codex/bcpack-mip-tail
codex/bc7-texture-draw
codex/asset-ranges
codex/pixel-constants
codex/pixel-aot
codex/pre-exe-workloads
codex/root-signature-device-coverage
engineering/packed-bvh-leaves
engineering/bvh-build-and-update
engineering/intake-root-roundtrip
community/gpu-check-release
community/english-contributor-entry
gpu-check-v0.1.0
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
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.
Reference
R0Y00/Xbox2Windows#901
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?
Imported from R0Y00/Xbox2Windows. Originally posted by JoshRob297 on 2026-11-23T16:45:03Z.
General PE-level observations about a GDK console executable, in case they save time on the PE side. Static only: the file is read as data and never executed.
Zero-fill in
.data. The writable data section's virtual size is about an order of magnitude larger than its raw size. The image therefore needsSizeOfImageworth of committed memory, and the loader has to zero that range rather than just map file bytes. A mapping path that sizes memory from the raw section data, or fromSizeOfUninitializedData, will under-allocate.Build-metadata sections. Two sections share the name
.xbldand carry build metadata, not code. One of them is writable and discardable.No certificate directory and no resource directory. The file is unsigned and has no version resource, so a check that expects
VS_VERSIONINFOfinds nothing.Imports are console-side. They go through the OneCore API sets plus GDK console modules (for example
AcpHal.dlland the Xbox D3D12 module) and some third-party middleware modules. Asset I/O uses the ordinary Win32 file calls (CreateFileW,ReadFile,FindFirstFileW,FindNextFileW,GetFileAttributesW), andDStorageGetFactoryis imported as well. DirectStorage on console and on desktop do not resolve to the same implementation.Asset locations come from configuration, not code. The binary reads its archive directory from settings keys, so a compatibility layer could point those settings elsewhere instead of patching a mount path. Whether redirecting a path is sufficient still has to be shown with a source-built case.
Edited by @MasterDomino to keep this issue title-neutral, per the maintainer's request in this thread: exact sizes, names and other values taken from the private file were removed, and the general PE observations were kept.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T16:50:13Z.
Thanks for the static observations. The mapper already allocates SizeOfImage and preserves zero-fill beyond the raw section extent. The existing source-built section and image-data fixtures cover that behavior. #890 has merged; it inventories import closure, including forwarded exports, so the full local list isn't needed here. Import names and configuration strings alone don't establish which storage calls execute or whether redirecting a path is sufficient. If you find a specific mismatch, a source-built case with the PE field, expected and actual values, and the first diagnostic would be useful. Please keep the executable and other local files private.
Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-23T21:49:25Z.
Answering this from a read-only parse of the entry image (pefile, independently spot-checked). Will post the section table, header fields, import/export summary, exception/TLS directories, and the version-resource finding below. Static only; nothing executed or uploaded.
Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-23T21:50:10Z.
Answering from a read-only parse of a GDK console entry image, using pefile and the repo's own
tools/pe_inventory.pyreaders. Static only: nothing was executed, loaded or uploaded.Bottom line: it is an ordinary, unsigned x64 PE32+ desktop-format image: DOS stub, COFF header, standard data directories, DIR64 relocations. Its section and import content are GDK-specific. It is AMD64, not ARM64/XBE/XEX; the packaging is Xbox, but the executable format is Windows PE. There is no resource section at all, hence no
VS_VERSION_INFO, and no embedded certificate.Header
MachineAMD64,MagicPE32+,CharacteristicsEXECUTABLE_IMAGE | LARGE_ADDRESS_AWARE(not a DLL; relocations not stripped).DllCharacteristicshasHIGH_ENTROPY_VA | DYNAMIC_BASE | NX_COMPAT | TERMINAL_SERVER_AWARE, but noGUARD_CF, noAPPCONTAINERand noFORCE_INTEGRITY.link.exe; see.xbldbelow) and no overlay.Sections
.datais the mapping trap. Its virtual size is about an order of magnitude larger than its file-backed size, whileSizeOfUninitializedDatais 0. A mapper that sizes committed memory from that header field under-allocates; it must zero the section's full virtual size..xbldcarry GDK build metadata..retplneand.voltbl(retpoline and volatile metadata) are mapped with characteristics 0..rsrc,.edata,.idata,.bssor.gfidssection.Imports
api-ms-win-*andext-ms-win-*API sets plus the MSVC runtime. There are nokernel32,user32ord3d12imports.xmem.dll,d3d12_xs.dll,AcpHal.dll,xapu.dll,xg_xs.dll,XCRDAPI.dll(DStorageGetFactory),GameInput.dllandlibHttpClient.GDK.dll, plus third-party middleware.xmem.dll: theXMemAlloc/XMemFreefamily and the physical-page APIs (XMemAllocatePhysicalPages,XMemMapPhysicalPages, scatter variants and so on).d3d12_xs.dll:D3D12XboxCreateDevice,D3D12ConfigureVirtualMemoryXandD3D12SerializeVersionedRootSignature.CreateFileW/ReadFile/FindFirstFileWthroughapi-ms-win-core-file-l1-1-0.dll.Export: exactly one, and it is data
__XMemAllocationHooks__, in.data. It's a data symbol, not a function: its first entries are relocated.textaddresses, consistent with an allocator hook table.Directories of interest
.pdata): a large number of runtime-function records, with unwind data in.rdata, covering the entry point and the TLS callbacks..text. The TLS index slot lies in.data's zero-fill, which is another reason the whole virtual size of.datamust be committed and writable before TLS initialization.pe_map.cpp'sseed_security_cookie()expects). It carries CFG/XFG/cast-guard pointer slots, butGuardFlags == 0, the CFG table is empty and there is noGUARD_CFbit, so don't infer CFG enforcement from the slots.MicrosoftGame.Config/appxmanifest.xml, so a tool expecting a version resource in the EXE will find nothing.What marks it as GDK/Xbox rather than desktop
.xbldrecords hold_xbld_edition_*entries listing GRDK/GXDK SDK editions and a clang-based toolchain. Together with the missing Rich header, this explains a linker version of 14.0 without MSVClink.exe.__XMemAllocationHooks__data export;.retplne/.voltblmetadata retained in a shipping image;.rdata.Consequences for a mapper or recompiler
SizeOfImageand zero each section's full virtual size; don't trustSizeOfUninitializedData == 0..data's zero-fill before TLS, since the index lives there..pdatarecords.Reproduce: open the file read-only with the
out/pe-envPython and pefile; imports and exports viatools/pe_inventory.py(import_tables,exports). AI-assisted.Edited by @MasterDomino per @R0Y00's request in this thread: exact offsets, sizes, hashes, paths, timestamps, toolchain and version details from the private file were removed, and the general PE observations were kept.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T22:06:03Z.
Thanks for the format summary. Please edit the public comment down to the general PE observations and a source-built reproduction where possible. Remove exact offsets, sizes, fingerprints and other values taken from the private file. We can keep the generic header/section and tooling discussion in this thread.
[GH #908] What the released console executable actually looks like at the PE level (sections, imports, no version resource)to [GH #908] PE-level shape of a GDK console executable (sections, imports, no version resource)Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-25T21:02:03Z.
@JoshRob297, @triggered02, a heads-up: following @R0Y00's request above, I edited the issue description and the long format-summary comment down to the general PE observations. Exact sizes, offsets, hashes, paths, names, toolchain and version details from the private file are removed; the mapper-relevant findings and the reproduction notes stay. AI-assisted.