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 | |
|---|
|
|---|
| data | | name | "ReadyToRunHeader" |
|---|
| size_min | 16 |
|---|
| fields | | offset | 0 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "Signature" |
|---|
| notes | "0x00525452 RTR" |
|---|
|
| offset | 4 |
|---|
| size | 2 |
|---|
| type | "uint16" |
|---|
| name | "MajorVersion" |
|---|
|
| offset | 6 |
|---|
| size | 2 |
|---|
| type | "uint16" |
|---|
| name | "MinorVersion" |
|---|
|
| offset | 8 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "Flags" |
|---|
|
| offset | 12 |
|---|
| size | 2 |
|---|
| type | "uint16" |
|---|
| name | "NumberOfSections" |
|---|
|
| offset | 14 |
|---|
| size | 1 |
|---|
| type | "uint8" |
|---|
| name | "EntrySize" |
|---|
|
| offset | 15 |
|---|
| size | 1 |
|---|
| 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 | |
|---|
| 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." |
|---|
|
|
|---|