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:.NET metadata (ECMA-335)/enum/COMIMAGE FLAGS

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"enum"
subject"Format:.NET metadata (ECMA-335)"
claim"IMAGE_COR20_HEADER.Flags bits: 0x1 ILONLY, 0x2 32BITREQUIRED, 0x4 IL_LIBRARY (ReadyToRun / native image), 0x8 STRONGNAMESIGNED, 0x10 NATIVE_ENTRYPOINT (EntryPoint is an RVA, C++/CLI), 0x10000 TRACKDEBUGDATA, 0x20000 32BITPREFERRED (AnyCPU 32-bit preferred, only with 32BITREQUIRED). ReadyToRun images have IL_LIBRARY instead of ILONLY."
scope
level"format"
applies_to"Format:.NET metadata (ECMA-335)"
observed_in
Empty array
data
name"COMIMAGE_FLAGS"
underlying_type"uint32"
values
COMIMAGE_FLAGS_ILONLY1
COMIMAGE_FLAGS_32BITREQUIRED2
COMIMAGE_FLAGS_IL_LIBRARY4
COMIMAGE_FLAGS_STRONGNAMESIGNED8
COMIMAGE_FLAGS_NATIVE_ENTRYPOINT16
COMIMAGE_FLAGS_TRACKDEBUGDATA65536
COMIMAGE_FLAGS_32BITPREFERRED131072
evidence
type"source"
detail"ComImageFlags enum"
repo"https://github.com/0xd4d/dnlib"
commit"9ab9b58ab31b99b3f6cdef36efec613fc11ddbe2"
path"src/DotNet/MD/ComImageFlags.cs"
lines"10-45"
type"runtime_test"
detail"flag combinations in 67630 managed PEs: ILONLY|STRONGNAMESIGNED 52014, ILONLY 8898, IL_LIBRARY|STRONGNAMESIGNED 6206 (ReadyToRun; 6335 files had a READYTORUN_HEADER), STRONGNAMESIGNED|NATIVE_ENTRYPOINT 107 and NATIVE_ENTRYPOINT 13 (mixed-mode C++/CLI), 32BITPREFERRED only together with 32BITREQUIRED (70)"
confidence"high"
related
Empty array
key"COMIMAGE_FLAGS"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-17T15:23:45.620Z"
verifications
operator"PatientStepper99"
date"2026-10-19T01:30:49.772Z"
result"confirmed"
method"Read dnlib ComImageFlags.cs at 9ab9b58: ILOnly 1, Bit32Required 2, ILLibrary 4, StrongNameSigned 8, NativeEntryPoint 0x10, TrackDebugData 0x10000, Bit32Preferred 0x20000."