diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2023-01-04 12:18:54 +0100 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2023-01-04 13:17:42 +0100 |
commit | 673a92c5d2c2b6dbcc5b530b0b1215db7afb8188 (patch) | |
tree | 8fdd29c6816440481104b45ba0da1fb5a000cd57 | |
parent | fbc595b4124de3d51cb00fe541b93a3d979a58ec (diff) | |
download | u-boot-673a92c5d2c2b6dbcc5b530b0b1215db7afb8188.zip u-boot-673a92c5d2c2b6dbcc5b530b0b1215db7afb8188.tar.gz u-boot-673a92c5d2c2b6dbcc5b530b0b1215db7afb8188.tar.bz2 |
efi_loader: defines for PE-COFF section flags
Provide constants for the section flags used by binaries.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
-rw-r--r-- | include/asm-generic/pe.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asm-generic/pe.h b/include/asm-generic/pe.h index a1df747..b9d674b 100644 --- a/include/asm-generic/pe.h +++ b/include/asm-generic/pe.h @@ -51,6 +51,19 @@ #define IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER 12 #define IMAGE_SUBSYSTEM_EFI_ROM 13 +/* Section flags */ +#define IMAGE_SCN_CNT_CODE 0x00000020 +#define IMAGE_SCN_CNT_INITIALIZED_DATA 0x00000040 +#define IMAGE_SCN_CNT_UNINITIALIZED_ DATA 0x00000080 +#define IMAGE_SCN_LNK_NRELOC_OVFL 0x01000000 +#define IMAGE_SCN_MEM_DISCARDABLE 0x02000000 +#define IMAGE_SCN_MEM_NOT_CACHED 0x04000000 +#define IMAGE_SCN_MEM_NOT_PAGED 0x08000000 +#define IMAGE_SCN_MEM_SHARED 0x10000000 +#define IMAGE_SCN_MEM_EXECUTE 0x20000000 +#define IMAGE_SCN_MEM_READ 0x40000000 +#define IMAGE_SCN_MEM_WRITE 0x80000000 + #define LINUX_ARM64_MAGIC 0x644d5241 #endif /* _ASM_PE_H */ |