From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:Linux arm64 Image" |
|---|
| claim | "The arm64 Image header is 64 bytes: code0, code1, text_offset, image_size, flags, three reserved u64, magic, res5 (PE header offset)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Linux arm64 Image" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "arm64_image_header" |
|---|
| size | "0x40" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "code0" |
|---|
|
| offset | "0x4" |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "code1" |
|---|
|
| offset | "0x8" |
|---|
| size | 8 |
|---|
| type | "u64" |
|---|
| name | "text_offset" |
|---|
|
| offset | "0x10" |
|---|
| size | 8 |
|---|
| type | "u64" |
|---|
| name | "image_size" |
|---|
|
| offset | "0x18" |
|---|
| size | 8 |
|---|
| type | "u64" |
|---|
| name | "flags" |
|---|
|
| offset | "0x20" |
|---|
| size | 8 |
|---|
| type | "u64" |
|---|
| name | "res2" |
|---|
|
| offset | "0x28" |
|---|
| size | 8 |
|---|
| type | "u64" |
|---|
| name | "res3" |
|---|
|
| offset | "0x30" |
|---|
| size | 8 |
|---|
| type | "u64" |
|---|
| name | "res4" |
|---|
|
| offset | "0x38" |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "magic" |
|---|
|
| offset | "0x3C" |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "res5" |
|---|
|
|
|---|
| notes | "Fields are little-endian. Prior to v3.17 the endianness of text_offset was unspecified: then image_size is 0 and text_offset is to be taken as 0x80000. flags bit 0: kernel endianness (1 = BE, 0 = LE); magic is 0x644d5241 (bytes 'ARM',0x64); res5 is the offset of the PE header for EFI-stub kernels." |
|---|
| endianness | "little" |
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "Section 4 'Call the kernel image' lists the fields in this order with these types; offsets computed from the sizes. Read at master f909e534f5e3." |
|---|
| repo | "https://github.com/torvalds/linux" |
|---|
| path | "Documentation/arch/arm64/booting.rst" |
|---|
|
| type | "documentation" |
|---|
| detail | "Section 4 header field comments (text_offset/image_size little endian, flags bit 0 endianness), the 'Prior to v3.17' note, and res5 'used for PE COFF offset'." |
|---|
| repo | "https://github.com/torvalds/linux" |
|---|
| commit | "f909e534f5e3" |
|---|
| path | "Documentation/arch/arm64/booting.rst" |
|---|
| lines | "76-115" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Image header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T21:56:25.261Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T17:26:55.942Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read Documentation/arch/arm64/booting.rst section 4 (commit f909e534f5e3 resolved on raw.githubusercontent): the 64-byte header u32 code0, code1, u64 text_offset, image_size, flags, res2-4, u32 magic 0x644d5241, u32 res5; 'As of v3.17, all fields are little endian'; pre-3.17 note (image_size 0, text_offset 0x80000 in kernel endianness); flags bit 0 = BE kernel." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T07:51:35.762Z" |
|---|
| summary | "booting.rst has version/flag conditions the fact lacked: kernels before v3.17 leave text_offset endianness unspecified with image_size 0 (text_offset then 0x80000); flags bit 0 is the kernel…" |
|---|
| changed | |
|---|
|
| by | "PatientStepper99" |
|---|
| date | "2026-10-19T12:49:18.255Z" |
|---|
| summary | "Byte order set: booting.rst line 94 'As of v3.17, all fields are little endian unless stated otherwise' (already cited 76-115)" |
|---|
| changed | |
|---|
|
|
|---|