From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) by mx.groups.io with SMTP id smtpd.web10.11420.1689261890192112090 for ; Thu, 13 Jul 2023 08:24:50 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@gmail.com header.s=20221208 header.b=ExI7zhPk; spf=pass (domain: gmail.com, ip: 209.85.215.173, mailfrom: joey.vagedes@gmail.com) Received: by mail-pg1-f173.google.com with SMTP id 41be03b00d2f7-553ad54d3c6so545458a12.1 for ; Thu, 13 Jul 2023 08:24:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689261889; x=1691853889; 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=YsuRZWoX9+1cqcrHsFmFhumfr3as+mqHa5qvUDz4BYw=; b=ExI7zhPkOuPIzC9kTrJkOQaOo5/oPfM3qHXquLRlZ72k+LyWiDXvbhXOT/s+7dYbZH zXjj8H+asry9vAyUEKUFKwKh/Kccyipff0tFx3d34/M3myPDdIc8LGAL40ubvdtx2gzy lvDZ5RYdiBwUfz3Vka/5HhCQN8Mdhb/+utkrwsFAtbXs5tAXCgp1AfdvGSCJ5NVyd8IL 2zzNRpqOo8qvyXFzrDluIK8aVaEkwn+lU4BGGUxgB7O0VDXpewmCLBhrdZB/C7Fx07sc 0+5kq4JqyIBL8LKXc0EPzlBd8DUZw5deva3mAkLAm7ExigWYZ3n1TUhmx+rYWiMzEsRe w1eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689261889; x=1691853889; 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=YsuRZWoX9+1cqcrHsFmFhumfr3as+mqHa5qvUDz4BYw=; b=PRCWw6GjfEL0V72CEopCnw/x6NPu4hOus/8Qbg49cYAF0L3dOOh4i/ldafTD49RlqT XAXLPUl7K5foSTSwCksVaZDmIRb1F8qsa6Tyb/w/t+N8NJMGEXCS3k/t3Wobryt8NFPG OYW06WbEHLNvsp6ERFzzZNVYLqvBrLrwh1X9luxqHHUQn+CX6ZWX1ObrVEDwgGdBaf+3 orni/weyIr/5qdLt/6d5f5Zgi951rO/yZv+Ngt1TeTLMTClVzogeibG4qYTAYseVU75S Gi2C0Hm0T5w1cbnTjtf0IQfnbV5sf1FVOCWz8r1NLihNDHBW4r4oFVtJIZUNInL7EzpQ hQMw== X-Gm-Message-State: ABy/qLbFkgjZHDwfdOZh3aznuCi0Wc7Szbrfa4q47Y1/U5mCQohvqIJe ZL+OVUWyEznYzbvVBrLFClXY9a1n0Wc= X-Google-Smtp-Source: APBJJlGuntB2CBBs1UkFOiQJavCrMoEID8aN/0eGGH60bqzgvppo/boRLlwfgvUviUnkyfEYh3Sj3g== X-Received: by 2002:a17:90a:1f8f:b0:265:7719:b83e with SMTP id x15-20020a17090a1f8f00b002657719b83emr1110370pja.43.1689261889192; Thu, 13 Jul 2023 08:24:49 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([174.164.102.13]) by smtp.gmail.com with ESMTPSA id p9-20020a17090a74c900b00263ba6a248bsm12023610pjl.1.2023.07.13.08.24.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jul 2023 08:24:48 -0700 (PDT) From: "Joey Vagedes" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [PATCH v3 1/2] MdePkg: IndustryStandard: Add DLL Characteristics Date: Thu, 13 Jul 2023 08:24:35 -0700 Message-ID: <20230713152436.220-2-joey.vagedes@gmail.com> X-Mailer: git-send-email 2.41.0.windows.2 In-Reply-To: <20230713152436.220-1-joey.vagedes@gmail.com> References: <20230713152436.220-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 Reviewed-by: Michael D Kinney --- 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.2