Skip to content

Commit e53c618

Browse files
Javagedesmergify[bot]
authored andcommitted
MdePkg: IndustryStandard: Add DLL Characteristics
Add the bit masks for DLL Characteristics, used within the optional header of a PE, to the PeImage.h header file. Update the Visual Studio, Microsoft Portable Executable and Common Object File Format Specification, and the PE/COFF Specification to the latest version. Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Zhiguang Liu <zhiguang.liu@intel.com> Signed-off-by: Joey Vagedes <joeyvagedes@gmail.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Rebecca Cran <rebecca@bsdio.com>
1 parent ae02d48 commit e53c618

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

MdePkg/Include/IndustryStandard/PeImage.h

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
EFI_IMAGE_NT_HEADERS64 is for PE32+.
55
66
This file is coded to the Visual Studio, Microsoft Portable Executable and
7-
Common Object File Format Specification, Revision 8.3 - February 6, 2013.
7+
Common Object File Format Specification, Revision 9.3 - December 29, 2015.
88
This file also includes some definitions in PI Specification, Revision 1.0.
99
1010
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
@@ -269,6 +269,21 @@ typedef struct {
269269
#define EFI_IMAGE_SUBSYSTEM_OS2_CUI 5
270270
#define EFI_IMAGE_SUBSYSTEM_POSIX_CUI 7
271271

272+
//
273+
// DLL Characteristics
274+
//
275+
#define IMAGE_DLLCHARACTERISTICS_HIGH_ENTROPY_VA 0x0020
276+
#define IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE 0x0040
277+
#define IMAGE_DLLCHARACTERISTICS_FORCE_INTEGRITY 0x0080
278+
#define IMAGE_DLLCHARACTERISTICS_NX_COMPAT 0x0100
279+
#define IMAGE_DLLCHARACTERISTICS_NO_ISOLATION 0x0200
280+
#define IMAGE_DLLCHARACTERISTICS_NO_SEH 0x0400
281+
#define IMAGE_DLLCHARACTERISTICS_NO_BIND 0x0800
282+
#define IMAGE_DLLCHARACTERISTICS_APPCONTAINER 0x1000
283+
#define IMAGE_DLLCHARACTERISTICS_WDM_DRIVER 0x2000
284+
#define IMAGE_DLLCHARACTERISTICS_GUARD_CF 0x4000
285+
#define IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE 0x8000
286+
272287
///
273288
/// Length of ShortName.
274289
///

0 commit comments

Comments
 (0)