mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 16:37:19 +09:00
stub: measure PE sections in a defined order, and include all sections
This commit is contained in:
@@ -150,8 +150,10 @@ static void export_variables(EFI_LOADED_IMAGE_PROTOCOL *loaded_image) {
|
||||
EFI_STATUS efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *sys_table) {
|
||||
|
||||
enum Section {
|
||||
SECTION_CMDLINE,
|
||||
/* This is the canonical order in which we measure the sections. PLEASE DO NOT REORDER! */
|
||||
SECTION_LINUX,
|
||||
SECTION_OSREL,
|
||||
SECTION_CMDLINE,
|
||||
SECTION_INITRD,
|
||||
SECTION_SPLASH,
|
||||
SECTION_DTB,
|
||||
@@ -159,8 +161,9 @@ EFI_STATUS efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *sys_table) {
|
||||
};
|
||||
|
||||
static const char * const sections[_SECTION_MAX + 1] = {
|
||||
[SECTION_CMDLINE] = ".cmdline",
|
||||
[SECTION_LINUX] = ".linux",
|
||||
[SECTION_OSREL] = ".osrel",
|
||||
[SECTION_CMDLINE] = ".cmdline",
|
||||
[SECTION_INITRD] = ".initrd",
|
||||
[SECTION_SPLASH] = ".splash",
|
||||
[SECTION_DTB] = ".dtb",
|
||||
|
||||
Reference in New Issue
Block a user