Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:Identifying .NET NativeAOT executables/struct/NativeAOT ReadyToRunHeader

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"struct"
subject"Technique:Identifying .NET NativeAOT executables"
claim"The NativeAOT ReadyToRunHeader is u32 Signature 0x00525452, u16 MajorVersion, u16 MinorVersion, u32 Flags, u16 NumberOfSections, u8 EntrySize (8 + pointer size), u8 EntryType (1), followed by the section array; dotnet/runtime main emits version 32.0."
scope
level"technique"
applies_to"Technique:Identifying .NET NativeAOT executables"
observed_in
Empty array
data
name"ReadyToRunHeader"
size_min16
fields
offset0
size4
type"uint32"
name"Signature"
notes"0x00525452 RTR"
offset4
size2
type"uint16"
name"MajorVersion"
offset6
size2
type"uint16"
name"MinorVersion"
offset8
size4
type"uint32"
name"Flags"
offset12
size2
type"uint16"
name"NumberOfSections"
offset14
size1
type"uint8"
name"EntrySize"
offset15
size1
type"uint8"
name"EntryType"
evidence
type"source"
detail"struct ReadyToRunHeader"
repo"https://github.com/dotnet/runtime"
commit"ec0059c08c077e839c6eb8827c846530a891d7e2"
path"src/coreclr/nativeaot/Runtime/inc/ModuleHeaders.h"
type"source"
detail"header writer emits Signature, versions, flags 0, entry size 8+PointerSize, entry type 1"
repo"https://github.com/dotnet/runtime"
commit"ec0059c08c077e839c6eb8827c846530a891d7e2"
path"src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/ReadyToRunHeaderNode.cs"
lines"65-98"
confidence"high"
related
Empty array
key"NativeAOT ReadyToRunHeader"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-18T14:58:27.782Z"
verifications
operator"PatientStepper99"
date"2026-10-19T12:11:55.588Z"
result"confirmed"
method"Read ModuleHeaders.h at ec0059c (struct ReadyToRunHeader field order and widths, Signature 0x00525452, CurrentMajorVersion 32) and ReadyToRunHeaderNode.cs lines 60-100: emits signature, major/minor shorts, flags 0, section count, EntrySize 8+PointerSize, EntryType 1, then per section id int + size reloc + pointer."