From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by mx.groups.io with SMTP id smtpd.web11.1910.1687535095765618300 for ; Fri, 23 Jun 2023 08:44:55 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20221208 header.b=RvwoqDIg; spf=pass (domain: gmail.com, ip: 209.85.216.46, mailfrom: joey.vagedes@gmail.com) Received: by mail-pj1-f46.google.com with SMTP id 98e67ed59e1d1-25e83a63143so544445a91.3 for ; Fri, 23 Jun 2023 08:44:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687535095; x=1690127095; 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=WyZhdQgXSDGO7RXKz008I4ct85XDi0Xtm52juuDl6w4=; b=RvwoqDIgDpnvsDTJk48ZF4mw2HG6oecJH4paonPQLC9ynQh/dRmavLzDJO2LUXrRvt MxaJ/2AWLa5+U/qJbIWZR6EYNjFZNVT7SFjgxnEDg++OZUQpuQAtZMoV57/Qg7Up3WAB EMR/ICNQ2Q6p/pQ7yXhLakYta1aJOD0rwkxn/omk4n8lGnIaWexviUNwC+UVuQthJgnq 6E3SGzT0fWy4HDpShRECR1gThtR4q3jaFP/dj7diaykCKg6O/FNYrCZS05aIiP2IAH7n Yat9dXBrGiDusv5E/WWgmo5tnRGxVV26B7aQKuVJ4qT1ALaqN7DUulMJ1S/lQZKNSQY5 DqeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687535095; x=1690127095; 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=WyZhdQgXSDGO7RXKz008I4ct85XDi0Xtm52juuDl6w4=; b=XiO0KMv8CubQfa9vp0AC3YiiM2IUtrRXP9+4ldyDpZbgVbyYo6jeD30IEdho7U3owd VrcdxrMsatG3BQoDdiGI1XtfP7MdFDMP6PY2p4ALBRDDc/TeVEKVHCqIrScXGtpk/zXY e6cFGJwDnlXBIehqdvYcAupVcFQdIkFBpZDdRwr3fftufZT9P5VwHV5ZwjsNg75NgnSS inhiSDcxy9xWYanB8QlIviYMLA4D5zT1yCJQdydBaXP6AMt3QeiPhfpFUaQJw8QrGE65 dPuT1w0sJwE9SzjYjhw9M343Sk5hs3fBWRfRLqjnjwmrXz1oxTCFa0sQyZS7KGH6PfQ+ +5ZQ== X-Gm-Message-State: AC+VfDwhBkejWFAjbpg6VSRFiSkxkAEqt9UIcQn8Qzd/j5SnSmX3GKPb 1k1TXu9TJhjRACzi8fkDIoD+uUFM/lPiUVe9 X-Google-Smtp-Source: ACHHUZ5g9PFnKQe4iA8m02B/0LtEWLCJX2ObwJzyjlUIo5FpmOuqA+x98BLOy8sb7bsQ6lNzfJ8eGA== X-Received: by 2002:a17:90a:fe0d:b0:256:4217:b955 with SMTP id ck13-20020a17090afe0d00b002564217b955mr19433412pjb.35.1687535094794; Fri, 23 Jun 2023 08:44:54 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([174.164.102.13]) by smtp.gmail.com with ESMTPSA id e14-20020a17090ac20e00b0025bb1bdb989sm1654192pjt.29.2023.06.23.08.44.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jun 2023 08:44:54 -0700 (PDT) From: Joey Vagedes To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [PATCH v1 1/2] MdePkg: IndustryStandard: Add DLL Characteristics Date: Fri, 23 Jun 2023 08:44:41 -0700 Message-ID: <20230623154442.799-2-joey.vagedes@gmail.com> X-Mailer: git-send-email 2.41.0.windows.1 In-Reply-To: <20230623154442.799-1-joey.vagedes@gmail.com> References: <20230623154442.799-1-joey.vagedes@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add the bit masks for DLL Characteristics, used within the optional header of a PE, to the PeImage.h header file. Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Signed-off-by: Joey Vagedes --- MdePkg/Include/IndustryStandard/PeImage.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/MdePkg/Include/IndustryStandard/PeImage.h b/MdePkg/Include/IndustryStandard/PeImage.h index 47037049348c..430e8988f550 100644 --- a/MdePkg/Include/IndustryStandard/PeImage.h +++ b/MdePkg/Include/IndustryStandard/PeImage.h @@ -269,6 +269,21 @@ typedef struct { #define EFI_IMAGE_SUBSYSTEM_OS2_CUI 5 #define EFI_IMAGE_SUBSYSTEM_POSIX_CUI 7 +// +// DLL Characteristics +// +#define IMAGE_DLLCHARACTERISTICS_HIGH_ENTROPY_VA 0x0020 +#define IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE 0x0040 +#define IMAGE_DLLCHARACTERISTICS_FORCE_INTEGRITY 0x0080 +#define IMAGE_DLLCHARACTERISTICS_NX_COMPAT 0x0100 +#define IMAGE_DLLCHARACTERISTICS_NO_ISOLATION 0x0200 +#define IMAGE_DLLCHARACTERISTICS_NO_SEH 0x0400 +#define IMAGE_DLLCHARACTERISTICS_NO_BIND 0x0800 +#define IMAGE_DLLCHARACTERISTICS_APPCONTAINER 0x1000 +#define IMAGE_DLLCHARACTERISTICS_WDM_DRIVER 0x2000 +#define IMAGE_DLLCHARACTERISTICS_GUARD_CF 0x4000 +#define IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE 0x8000 + /// /// Length of ShortName. /// -- 2.41.0.windows.1