]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: defines for PE-COFF section flags
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 4 Jan 2023 11:18:54 +0000 (12:18 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 4 Jan 2023 12:17:42 +0000 (13:17 +0100)
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>
include/asm-generic/pe.h

index a1df7471348e795de9c47ad7ada27d48abc16a32..b9d674b6da4d7cb6f812832e427650b71b0a5e3a 100644 (file)
 #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 */