From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web10.856.1687975416683141349 for ; Wed, 28 Jun 2023 11:03:37 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=WFRUm7pq; spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: michael.d.kinney@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687975416; x=1719511416; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=/zJu6DAg8dMKmrw3bMsfZjELsXrjz0dN0e6mBeraS8w=; b=WFRUm7pq8FQkTqWoU49TNq3v5URLUWFzCzxqf9wOXECG7GRVKn1woIj4 VHm+J8XIKX/yloBlOUS+iYmmmwOxOUfc/RlZsUTa7GcMRv8YKP3ySoB2g Y1JMoJUHotqnsDLerVSJ9Ju3dIfwoDdGwWeuOqf31iZFJ8t5ifT75pdZL BzRmuyaXEo2YaxIyoLrXeIJnQcrxc8dnlgsM5naSecnnERlFLl93Fed2w jXmMO38qUc+ImuIrPeN1w03szretPy5T8nqjKSMBHP7IyPhnRL7/wQUwh TX7FJRvznRcuhMeiHtzbpFkoIKlM981sY1sjEZf3ShA5Wy4g7TR8SQQjN w==; X-IronPort-AV: E=McAfee;i="6600,9927,10755"; a="448303981" X-IronPort-AV: E=Sophos;i="6.01,166,1684825200"; d="scan'208";a="448303981" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jun 2023 11:03:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10755"; a="752351676" X-IronPort-AV: E=Sophos;i="6.01,166,1684825200"; d="scan'208";a="752351676" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga001.jf.intel.com with ESMTP; 28 Jun 2023 11:03:18 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 28 Jun 2023 11:03:18 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27 via Frontend Transport; Wed, 28 Jun 2023 11:03:18 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.49) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.27; Wed, 28 Jun 2023 11:03:16 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GJF02zoqAyATt510hi7xC7VlNRm6PkBduQCicE7LtA53CmXAbIwOwnEc2/G7WUdlyA7XQA1bGN3TwMEegHx5hdBKSqHax7sLzcP4CPnzfJsu8rcLUVCxtjWadiOavzyRAmTIZxWDeJKhp4kP9cXkN6Q8+rIKC17qWCc7e25Uf9cK+Aq/t+c4wVTrE4ncukbfC/dxANN1u82py6KUCfaK3X6ZlKAKUnyXPJjjEGNV1g8Qhl3NJCRw18FaMK99Pd53/dN+bG8sr86hHavbjmZC6oCz5I/QSEDEJ2AU3eptxHTIJa5bld7tPswjdRgNbcVPZWfkri/S7Dt+lQsD4VnUpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+zBRPB19P1X2a5aSQKyvWacVRvvLoBqtR2rKfNn2Ol4=; b=WtMWtK6yh3QnQ9G6igrNCkBlq5W9TK+lPuiJSckEkgiqaHiIszfodBtWafYcpYLLvhnzHxnHd4/ISRMa7g6sIU9JXY+e9FPjNQ7isX3G4b95HKMM0OD0gdNIPydQHXOjYJRQlcMHycBEI2qj+FRstRYC4yiyPhzM0h9yena1HeKRHTw4n2aSrBUisZyviMsLO4FnBw/sGcCPUDSfk5HP11FfDg4KEYt2jnzLj2fPECzrv1/Pbljj8ERCOPUatOi1SYOzrdUg9HkT2klRaAA032jIgRPKrOmm0MNSJTKAA2kZkrjFab5WWOmQcWS/M7XYyahOhuCP7bML7hs3inn1Mg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from SA2PR11MB4938.namprd11.prod.outlook.com (2603:10b6:806:fb::14) by SJ0PR11MB5920.namprd11.prod.outlook.com (2603:10b6:a03:42e::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.23; Wed, 28 Jun 2023 18:03:11 +0000 Received: from SA2PR11MB4938.namprd11.prod.outlook.com ([fe80::f7a7:8a51:7ca5:4784]) by SA2PR11MB4938.namprd11.prod.outlook.com ([fe80::f7a7:8a51:7ca5:4784%7]) with mapi id 15.20.6521.024; Wed, 28 Jun 2023 18:03:11 +0000 From: "Michael D Kinney" To: Joey Vagedes , "devel@edk2.groups.io" CC: "Gao, Liming" , "Liu, Zhiguang" , "Kinney, Michael D" Subject: Re: [PATCH v2 1/2] MdePkg: IndustryStandard: Add DLL Characteristics Thread-Topic: [PATCH v2 1/2] MdePkg: IndustryStandard: Add DLL Characteristics Thread-Index: AQHZqeeCaS0OoQQVm0u1m8ucbJO73q+ggb9Q Date: Wed, 28 Jun 2023 18:03:11 +0000 Message-ID: References: <20230628173907.1296-1-joey.vagedes@gmail.com> <20230628173907.1296-2-joey.vagedes@gmail.com> In-Reply-To: <20230628173907.1296-2-joey.vagedes@gmail.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SA2PR11MB4938:EE_|SJ0PR11MB5920:EE_ x-ms-office365-filtering-correlation-id: 1eecaa12-7bbb-434f-8198-08db7801efd0 x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: qzSXK2B0GTYXSOB3R2fIcN0NhE2XSRKAyRT19OeD2iBRqidBZTYYlN6l2YQb/lhCsl+jCIyNtV7QsMcTglUnZTEj0IRLOmiBzLgCfDtSiAblyux0L6uVL1s4PsSB6Fr9AvXNQu4Q65I3lURViaG4AqXG30ZVfh588oH5ZcdWvsQw9WNewfIqSBG6Y8PD31sKeFkiqSmdM9AWu+IsTvquMYJacZYe63Cgtgt7YjjO3xybWRp8gl7iATNhKqypJUuLEcKXuBIQcrh7fb2Nq54qkmrIlAyyHuLXhAFNn/bOED3jmAj5oT7ecj696X3u0HFDnylF7vByFU7PDBAyI+92ABF/Ac91N8UC+KiyhKSn3GK2wYmmItDGTtVlJ4T/eZ05RNiDZ8z2tb1c1IX4ViQua6TkYLDydVTZ66Cn+BMOhw2rEKg82jvSSUCWhHBNEiYcIGFYwkKKYi5i3SDQAamwskiWvkyTDwdUz2uMOsUdnRm5IponDRwPKjSjNwa66UJ7d7bjwruSVfkVamTl05bg+Z1xg8+91HJWecj1TEdtfGWmyjme6Y+x1JeZydzVFZUDTVr7hmd1vtDvz3XS2TeLWEWgH+53aPFjyUAAVQgXEfHh4oSGBv4qejUEm640Na7J x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA2PR11MB4938.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(136003)(346002)(396003)(39860400002)(376002)(366004)(451199021)(26005)(107886003)(6506007)(5660300002)(110136005)(7696005)(2906002)(54906003)(45080400002)(478600001)(9686003)(186003)(53546011)(83380400001)(71200400001)(86362001)(41300700001)(33656002)(122000001)(66946007)(52536014)(82960400001)(4326008)(8676002)(66446008)(55016003)(38100700002)(76116006)(316002)(8936002)(66476007)(66556008)(38070700005)(64756008);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?CWyFHQTbt4ARqgymf/lgJmPVx0kzLKdolINqdF+fJsY0GBF5URH5GYWuLGKG?= =?us-ascii?Q?QbAizVQqc8fgMoTMSOp9m8gRIMUUnkp2ILsVerwArUL1mC4T+JWPPQ3rjUG3?= =?us-ascii?Q?wUUhyg1FHKMeRStnoCbtIdYBng5pBl/tpOKZ+KKCAPDTT1BNZk4yx9O6VUsl?= =?us-ascii?Q?nksMn57oZH8z5wXDBfpXKAQBrSGs211daOftAOwPsuDq1HKCRJZEW7k5cKnB?= =?us-ascii?Q?MKoX/YDViBBmJjOD2WfMG2PSEt591O6k6IxrrbR2ygY/Fo5kwHoS3hkyGy8D?= =?us-ascii?Q?CRt0TabFF4C/sSjCm6v9d8+g1Jf+GZ5aCG7NXG2AmmSmoQeWDgncWLpOrPz6?= =?us-ascii?Q?u9Y/7D2hZgAT33Q0xQ47WIerq8apkjf0tpOo2bEyvpu1IZBkhrpEaBRG6KVc?= =?us-ascii?Q?+6DtQyPCqT3PCWrRtsoJRXhS7lEkdUgK0OrUFcrTRCVnFf72USYNxGDBk4Xs?= =?us-ascii?Q?ZhhQ4FpoNoSbsjEx32FQOBQUVraJcTYXSdP1+SKlJ9h/SZE946FjzlVCe+/R?= =?us-ascii?Q?F9REtjWn6fMoDIjdEKFooMbfSEuOLTUcj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OvuWqf+pyvxj2lG3Fov5MkTXc5w9Zvc1kbYBeULcBGsno?= =?us-ascii?Q?i4eskSU8eZNqyikMCCY6FZCrr7HC9Bcu1xT/ChxnU11mW6GMIyiOgr9zkG3g?= =?us-ascii?Q?wu6io53i4KoyC96eUB7hv4yC/HQPyZkWKIGRxZIuGJKdHCUlnskTenwOkv1A?= =?us-ascii?Q?ow=3D=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA2PR11MB4938.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1eecaa12-7bbb-434f-8198-08db7801efd0 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Jun 2023 18:03:11.6669 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 3kWYiTaM1LsQbPep3leEDWJ93CZMGXkgc469mR8wArqCvrz6YuuqegaE5wJ7ATVI+jgXC5e5FGhHNJRwdGIMqGkj4XgyWOYU76evJrJ0BC0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB5920 Return-Path: michael.d.kinney@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Michael D Kinney > -----Original Message----- > From: Joey Vagedes > Sent: Wednesday, June 28, 2023 10:39 AM > To: devel@edk2.groups.io > Cc: Kinney, Michael D ; Gao, Liming > ; Liu, Zhiguang > Subject: [PATCH v2 1/2] MdePkg: IndustryStandard: Add DLL Characteristics >=20 > Add the bit masks for DLL Characteristics, used within the optional > header of a PE, to the PeImage.h header file. >=20 > Update the Visual Studio, Microsoft Portable Executable and Common > Object File Format Specification, and the PE/COFF Specification to the > latest version. >=20 > 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(-) >=20 > diff --git a/MdePkg/Include/IndustryStandard/PeImage.h > b/MdePkg/Include/IndustryStandard/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+. >=20 >=20 >=20 > This file is coded to the Visual Studio, Microsoft Portable Executable > and >=20 > - Common Object File Format Specification, Revision 8.3 - February 6, > 2013. >=20 > + Common Object File Format Specification, Revision 9.3 - December 29, > 2015. >=20 > This file also includes some definitions in PI Specification, Revision > 1.0. >=20 >=20 >=20 > Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
>=20 > @@ -269,6 +269,21 @@ typedef struct { > #define EFI_IMAGE_SUBSYSTEM_OS2_CUI 5 >=20 > #define EFI_IMAGE_SUBSYSTEM_POSIX_CUI 7 >=20 >=20 >=20 > +// >=20 > +// DLL Characteristics >=20 > +// >=20 > +#define IMAGE_DLLCHARACTERISTICS_HIGH_ENTROPY_VA 0x0020 >=20 > +#define IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE 0x0040 >=20 > +#define IMAGE_DLLCHARACTERISTICS_FORCE_INTEGRITY 0x0080 >=20 > +#define IMAGE_DLLCHARACTERISTICS_NX_COMPAT 0x0100 >=20 > +#define IMAGE_DLLCHARACTERISTICS_NO_ISOLATION 0x0200 >=20 > +#define IMAGE_DLLCHARACTERISTICS_NO_SEH 0x0400 >=20 > +#define IMAGE_DLLCHARACTERISTICS_NO_BIND 0x0800 >=20 > +#define IMAGE_DLLCHARACTERISTICS_APPCONTAINER 0x1000 >=20 > +#define IMAGE_DLLCHARACTERISTICS_WDM_DRIVER 0x2000 >=20 > +#define IMAGE_DLLCHARACTERISTICS_GUARD_CF 0x4000 >=20 > +#define IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE 0x8000 >=20 > + >=20 > /// >=20 > /// Length of ShortName. >=20 > /// >=20 > -- > 2.41.0.windows.1