diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2018-10-02 07:39:32 -0700 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2018-12-02 21:59:36 +0100 |
commit | 16c3da3fe965a43f8395472e335677c19c846468 (patch) | |
tree | 3e89b0534752ed8a36fb1b2a69ad1b1783d12a76 /include/asm-generic | |
parent | c54ed3ef5ee536a24d2ad1d9caee83c6c391a338 (diff) | |
download | u-boot-16c3da3fe965a43f8395472e335677c19c846468.tar.gz u-boot-16c3da3fe965a43f8395472e335677c19c846468.tar.xz u-boot-16c3da3fe965a43f8395472e335677c19c846468.zip |
pe.h: Add characteristics defines
This adds characteristics macros as defined by the Microsoft PE
Format documentation [1].
[1] https://docs.microsoft.com/zh-cn/windows/desktop/Debug/pe-format
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/asm-generic')
-rw-r--r-- | include/asm-generic/pe.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/asm-generic/pe.h b/include/asm-generic/pe.h index 9a8b5e82e3..faae534e37 100644 --- a/include/asm-generic/pe.h +++ b/include/asm-generic/pe.h @@ -11,6 +11,24 @@ #ifndef _ASM_PE_H #define _ASM_PE_H +/* Characteristics */ +#define IMAGE_FILE_RELOCS_STRIPPED 0x0001 +#define IMAGE_FILE_EXECUTABLE_IMAGE 0x0002 +#define IMAGE_FILE_LINE_NUMS_STRIPPED 0x0004 +#define IMAGE_FILE_LOCAL_SYMS_STRIPPED 0x0008 +#define IMAGE_FILE_AGGRESSIVE_WS_TRIM 0x0010 +#define IMAGE_FILE_LARGE_ADDRESS_AWARE 0x0020 +/* Reserved 0x0040 */ +#define IMAGE_FILE_BYTES_REVERSED_LO 0x0080 +#define IMAGE_FILE_32BIT_MACHINE 0x0100 +#define IMAGE_FILE_DEBUG_STRIPPED 0x0200 +#define IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP 0x0400 +#define IMAGE_FILE_NET_RUN_FROM_SWAP 0x0800 +#define IMAGE_FILE_SYSTEM 0x1000 +#define IMAGE_FILE_DLL 0x2000 +#define IMAGE_FILE_UP_SYSTEM_ONLY 0x4000 +#define IMAGE_FILE_BYTES_REVERSED_HI 0x8000 + /* Subsystem type */ #define IMAGE_SUBSYSTEM_EFI_APPLICATION 10 #define IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER 11 |