From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "identification" |
|---|
| subject | "Format:.NET ReadyToRun" |
|---|
| claim | "A composite ReadyToRun image is a PE native envelope whose READYTORUN_HEADER is found through the exported symbol RTR_HEADER (name changeable with crossgen2 --rtr-header-symbol-name, which custom hosts use). The design document says the header carries READYTORUN_FLAG_COMPOSITE (0x2), but at dotnet/runtime d80abfc readytorun.h and ReadyToRunConstants.cs define no such flag (0x00000002 there is SKIP_TYPE_VALIDATION), so test the RTR_HEADER export and the ComponentAssemblies section rather than that bit. It has a global CLI/COR header only for pdb generation, not used by the runtime, instead of a ManagedNativeHeader pointing to the R2R header as in single-file images. If the IL is left as separate files, each component assembly is rewritten with a READYTORUN_HEADER with the COMPONENT flag (0x20) whose only section is OwnerCompositeExecutable (116, UTF-8 file name of the composite); if the IL is embedded in the composite, the component metadata is reached through the ComponentAssemblies section instead." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:.NET ReadyToRun" |
|---|
| observed_in | |
|---|
|
|---|
| data | | method | "list the PE exports for RTR_HEADER (or the custom name); read the header at that RVA and check Signature 0x00525452; do not rely on a COMPOSITE flag bit" |
|---|
| indicator | "export RTR_HEADER (or custom --rtr-header-symbol-name); section 116 OwnerCompositeExecutable in standalone component assemblies; section ComponentAssemblies in a composite with embedded IL" |
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "PE Headers and CLI Headers chapter (lines 20-50, 70-76: composite files, RTR_HEADER export, global CLI header for pdb only, ComponentAssemblies) and OwnerCompositeExecutable section (lines 689-697, section type 116 at line 183; for standalone MSIL only)" |
|---|
| repo | "https://github.com/dotnet/runtime" |
|---|
| commit | "ec0059c08c077e839c6eb8827c846530a891d7e2" |
|---|
| path | "docs/design/coreclr/botr/readytorun-format.md" |
|---|
| lines | "20-50, 70-76, 183, 689-697" |
|---|
|
| type | "source" |
|---|
| detail | "ReadyToRunFlag enum: PLATFORM_NEUTRAL_SOURCE 0x1, SKIP_TYPE_VALIDATION 0x2, PARTIAL 0x4, ..., COMPONENT 0x20; no COMPOSITE entry. The doc table (readytorun-format.md line 134) still names 0x2 COMPOSITE." |
|---|
| repo | "https://github.com/dotnet/runtime" |
|---|
| commit | "d80abfc4b04f85722596e8d83af7f9a61dcf49da" |
|---|
| path | "src/coreclr/inc/readytorun.h" |
|---|
| lines | "111-125" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Composite R2R RTR_HEADER export" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T14:58:27.614Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:47:54.056Z" |
|---|
| result | "confirmed" |
|---|
| method | "Fetched dotnet/runtime readytorun-format.md at ec0059c (lines 20-50, 70-76, 125-140, 180-185, 685-700: RTR_HEADER export and --rtr-header-symbol-name, flag table naming COMPOSITE 0x2 at line 134 and 37, OwnerCompositeExecutable 116 for standalone MSIL), readytorun.h at d80abfc (ReadyToRunFlag enum: 0x2 = SKIP_TYPE_VALIDATION, no COMPOSITE, COMPONENT 0x20) and ReadyToRunConstants.cs at d80abfc (READYTORUN_FLAG_SkipTypeValidation 0x2, no Composite). Matches the claim." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T02:46:53.918Z" |
|---|
| summary | "Doc: composite file does have a global CLI header (unused by the runtime); OwnerCompositeExecutable-only component files exist only when IL is not embedded; claim was wider" |
|---|
| changed | | "claim" |
| "data" |
| "evidence replaced" |
|
|---|
|
| by | "PatientStepper99" |
|---|
| date | "2026-10-19T10:07:22.001Z" |
|---|
| summary | "The design doc table lists READYTORUN_FLAG_COMPOSITE = 0x2, but readytorun.h and ReadyToRunConstants.cs at d80abfc have no COMPOSITE flag (0x00000002 is READYTORUN_FLAG_SKIP_TYPE_VALIDATION) and…" |
|---|
| changed | | "claim" |
| "data" |
| "evidence" |
|
|---|
|
|
|---|