From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by mx.groups.io with SMTP id smtpd.web10.266.1687973961181108126 for ; Wed, 28 Jun 2023 10:39:21 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@gmail.com header.s=20221208 header.b=Q8TAbEvm; spf=pass (domain: gmail.com, ip: 209.85.214.169, mailfrom: joey.vagedes@gmail.com) Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-1b7e6512973so1590625ad.3 for ; Wed, 28 Jun 2023 10:39:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687973960; x=1690565960; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SBBy/IIe7r8SzPvj2EHuoG1EopwDxx+LN975yuE3ZBo=; b=Q8TAbEvm7oTogqV7hjA+4W6zbn1AEbjzFujSrLC2JmYCy5hT6g65rVmgVoFJDT4S97 RxRr49JINzG0B6Ie3mRFbEX5GaK7twVDL3raP719qrh+4aVSbqJsTdJts/0zocEO29xz 2Nc5Y8Mj6HxiUcgpoA46C6CMknuOJ4pW8TK4d2HArgQNOouqNO4X7meyB9dADdGUGXZX 6i3X+7H1d8kcoEsnxfwNQl3V7YzLMR7CYWcFE+lcMycdkKYz69TZH/bWRVYwXi/T3znK Ktcs/36kUComJTnpj3GZ/M4LKZzyy57RHXoIdIElz1h+wNjWfBgc0KnpNKForU2wyHmj faUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687973960; x=1690565960; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SBBy/IIe7r8SzPvj2EHuoG1EopwDxx+LN975yuE3ZBo=; b=ZoMRvb6z8xWBt3e8yINH4CAZ5eS/2LAm1IZYKlA9gJZA8E7ZRs4G7ZeO/3r5g7U59j QUha1e4tPiRZ5kAmqlxcpyZss4TVMk0ttsP0KI/c/KJ0uiRAvzDKGCyccM+/DLQIXuDb OHoQYIVQFjjeiF3BoczMEl6W5Pe1BHtW4+mEYFVVz0x13VdmZgx2oJQHARngFFEuPd5W 3O+8sk/lqkRNEjs3VcYeW0IY2x6dJWSuhxkkIm7yDF9Q+1cnJl/x0J3iTP5aHUgJGn19 /GMncAKpw9a88IZUan9trr768w1DpBlGvCA37GrQaUCQSmu43TvUtD5PWZPnY/tRDZSI 46Lg== X-Gm-Message-State: AC+VfDzwvGLqGnbyKjXn8yGo2yJ/yG7J6LnjXaeG7kdb9VcR1kg3o4+m //j+UCbyDtfZ/pOo1OBf2Iq1tBzFkol43hiY X-Google-Smtp-Source: ACHHUZ6LPkDRVObu3VgPzgG69TQbNTTVxp+wrAH8siREHhfkzZd14rYm4x1P6WOOQxsvYBQNRqtADA== X-Received: by 2002:a17:902:ecca:b0:1b5:561a:5c9a with SMTP id a10-20020a170902ecca00b001b5561a5c9amr8592411plh.39.1687973960164; Wed, 28 Jun 2023 10:39:20 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([174.164.102.13]) by smtp.gmail.com with ESMTPSA id j7-20020a17090276c700b001ac444fd07fsm7918830plt.100.2023.06.28.10.39.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jun 2023 10:39:19 -0700 (PDT) From: "Joey Vagedes" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [PATCH v2 1/2] MdePkg: IndustryStandard: Add DLL Characteristics Date: Wed, 28 Jun 2023 10:39:06 -0700 Message-ID: <20230628173907.1296-2-joey.vagedes@gmail.com> X-Mailer: git-send-email 2.41.0.windows.1 In-Reply-To: <20230628173907.1296-1-joey.vagedes@gmail.com> References: <20230628173907.1296-1-joey.vagedes@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 Cc: Liming Gao Cc: Zhiguang Liu Signed-off-by: Joey Vagedes --- MdePkg/Include/IndustryStandard/PeImage.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/MdePkg/Include/IndustryStandard/PeImage.h b/MdePkg/Include/Ind= ustryStandard/PeImage.h index 47037049348c..9fdbfb9c4944 100644 --- a/MdePkg/Include/IndustryStandard/PeImage.h +++ b/MdePkg/Include/IndustryStandard/PeImage.h @@ -4,7 +4,7 @@ EFI_IMAGE_NT_HEADERS64 is for PE32+.=0D =0D This file is coded to the Visual Studio, Microsoft Portable Executable a= nd=0D - Common Object File Format Specification, Revision 8.3 - February 6, 2013= .=0D + Common Object File Format Specification, Revision 9.3 - December 29, 201= 5.=0D This file also includes some definitions in PI Specification, Revision 1= .0.=0D =0D Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
=0D @@ -269,6 +269,21 @@ typedef struct { #define EFI_IMAGE_SUBSYSTEM_OS2_CUI 5=0D #define EFI_IMAGE_SUBSYSTEM_POSIX_CUI 7=0D =0D +//=0D +// DLL Characteristics=0D +//=0D +#define IMAGE_DLLCHARACTERISTICS_HIGH_ENTROPY_VA 0x0020=0D +#define IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE 0x0040=0D +#define IMAGE_DLLCHARACTERISTICS_FORCE_INTEGRITY 0x0080=0D +#define IMAGE_DLLCHARACTERISTICS_NX_COMPAT 0x0100=0D +#define IMAGE_DLLCHARACTERISTICS_NO_ISOLATION 0x0200=0D +#define IMAGE_DLLCHARACTERISTICS_NO_SEH 0x0400=0D +#define IMAGE_DLLCHARACTERISTICS_NO_BIND 0x0800=0D +#define IMAGE_DLLCHARACTERISTICS_APPCONTAINER 0x1000=0D +#define IMAGE_DLLCHARACTERISTICS_WDM_DRIVER 0x2000=0D +#define IMAGE_DLLCHARACTERISTICS_GUARD_CF 0x4000=0D +#define IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE 0x8000=0D +=0D ///=0D /// Length of ShortName.=0D ///=0D --=20 2.41.0.windows.1