From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:UEFI firmware volume (PI)" |
|---|
| claim | "Every FFS section starts with Size[3] (24-bit, includes the header) and Type; when Size is 0xFFFFFF a u32 ExtendedSize follows (EFI_COMMON_SECTION_HEADER2, 8 bytes) and must be used for sections of 16 MiB or more." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:UEFI firmware volume (PI)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "EFI_COMMON_SECTION_HEADER" |
|---|
| size | "0x4" |
|---|
| endianness | "little" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 3 |
|---|
| type | "uint8_t[3]" |
|---|
| name | "Size" |
|---|
|
| offset | "0x3" |
|---|
| size | 1 |
|---|
| type | "uint8_t" |
|---|
| name | "Type" |
|---|
|
| offset | "0x4" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "ExtendedSize" |
|---|
| condition | "only when Size == 0xFFFFFF" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "EFI_COMMON_SECTION_HEADER and EFI_COMMON_SECTION_HEADER2 with the ExtendedSize comment; line 419-420 states the PIC section2 form is required for 16MB or larger." |
|---|
| repo | "tianocore/edk2" |
|---|
| commit | "c1415771ac592ad8509351c46cd3cda4f38d7d52" |
|---|
| path | "MdePkg/Include/Pi/PiFirmwareFile.h" |
|---|
| lines | "229-258" |
|---|
|
| type | "source" |
|---|
| detail | "Same structs; EFI_SECTION2_IS_USED 0xFFFFFF." |
|---|
| repo | "LongSoft/UEFITool" |
|---|
| commit | "dac91b26733ca21cb204e41614c1b8c81cc50860" |
|---|
| path | "common/ffs.h" |
|---|
| lines | "385-399" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "EFI_COMMON_SECTION_HEADER" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T03:50:25.772Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T08:04:44.759Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read EFI_COMMON_SECTION_HEADER and EFI_COMMON_SECTION_HEADER2 in edk2 PiFirmwareFile.h at the cited commit: Size[3], Type, optional UINT32 ExtendedSize when Size is 0xFFFFFF. The 16 MiB remark was not re-read." |
|---|
|
|
|---|