diff options
author | Rob Clark <robdclark@gmail.com> | 2017-09-13 18:05:40 -0400 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2017-09-20 11:10:24 +0200 |
commit | 4657a3f1acb2f5f725b13d0f4f9e41cee1dcdc8d (patch) | |
tree | 484154bc2052839f06c480fdaec168b06d2cab11 /include/pe.h | |
parent | 61b7e22479880f57140dd74879996c83577aa63d (diff) |
efi_loader: set loaded image code/data type properly
These should be set according to the image type. Shell.efi and SCT.efi
use these fields to determine what sort of image they are loading.
Signed-off-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/pe.h')
-rw-r--r-- | include/pe.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/pe.h b/include/pe.h index deb35a0ea4..4ef3e92efa 100644 --- a/include/pe.h +++ b/include/pe.h @@ -62,6 +62,12 @@ typedef struct _IMAGE_DATA_DIRECTORY { #define IMAGE_NUMBEROF_DIRECTORY_ENTRIES 16 +/* PE32+ Subsystem type for EFI images */ +#define IMAGE_SUBSYSTEM_EFI_APPLICATION 10 +#define IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER 11 +#define IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER 12 +#define IMAGE_SUBSYSTEM_SAL_RUNTIME_DRIVER 13 + typedef struct _IMAGE_OPTIONAL_HEADER64 { uint16_t Magic; /* 0x20b */ uint8_t MajorLinkerVersion; |