| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
|
| 3 |
#include <stddef.h> |
| 4 |
|
| 5 |
#include "uki.h" |
| 6 |
|
| 7 |
const char* const unified_sections[_UNIFIED_SECTION_MAX + 1] = { |
| 8 |
/* These section names must fit in 8ch (excluding any trailing NUL) as per PE spec for executables: |
| 9 |
* https://learn.microsoft.com/en-us/windows/win32/debug/pe-format#section-table-section-headers |
| 10 |
* (Note that PE *object* files may have longer section names (via indirection in the string table) but |
| 11 |
* this is not allowed for PE *executables*, which UKIs are.) */ |
| 12 |
[UNIFIED_SECTION_LINUX] = ".linux", |
| 13 |
[UNIFIED_SECTION_OSREL] = ".osrel", |
| 14 |
[UNIFIED_SECTION_CMDLINE] = ".cmdline", |
| 15 |
[UNIFIED_SECTION_INITRD] = ".initrd", |
| 16 |
[UNIFIED_SECTION_UCODE] = ".ucode", |
| 17 |
[UNIFIED_SECTION_SPLASH] = ".splash", |
| 18 |
[UNIFIED_SECTION_DTB] = ".dtb", |
| 19 |
[UNIFIED_SECTION_UNAME] = ".uname", |
| 20 |
[UNIFIED_SECTION_SBAT] = ".sbat", |
| 21 |
[UNIFIED_SECTION_PCRSIG] = ".pcrsig", |
| 22 |
[UNIFIED_SECTION_PCRPKEY] = ".pcrpkey", |
| 23 |
[UNIFIED_SECTION_PROFILE] = ".profile", |
| 24 |
[UNIFIED_SECTION_DTBAUTO] = ".dtbauto", |
| 25 |
[UNIFIED_SECTION_HWIDS] = ".hwids", |
| 26 |
[UNIFIED_SECTION_EFIFW] = ".efifw", |
| 27 |
NULL, |
| 28 |
}; |