public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Joey Vagedes" <joeyvagedes@microsoft.com>
To: devel@edk2.groups.io
Cc: Rebecca Cran <rebecca@bsdio.com>,
	Liming Gao <gaoliming@byosoft.com.cn>,
	Bob Feng <bob.c.feng@intel.com>,
	Yuwei Chen <yuwei.chen@intel.com>
Subject: [PATCH v3 0/2] Automatically set NXCOMPAT bit if requirements are met
Date: Thu, 13 Jul 2023 08:24:34 -0700	[thread overview]
Message-ID: <20230713152436.220-1-joey.vagedes@gmail.com> (raw)

v3: Updates function to be Doxygen compliant
v3: Updates commit message

v2: Adds --nonxcompat flag to GenFw; updates man page
v2: Updates PeImage.h to reference spec 9.3 rather then 8.3

Utilize GenFw to automatically set the NXCOMPAT bit of the DLL Characteristics
field of the Optional Header if the following requirements are met:

1. It is a 64bit PE
2. The section alignment is evently divisible by 4K
3. No section is both EFI_IMAGE_SCN_MEM_EXECUTE and EFI_IMAGE_SCN_MEM_WRITE

Cc: Rebecca Cran <rebecca@bsdio.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Yuwei Chen <yuwei.chen@intel.com>

Joey Vagedes (2):
  MdePkg: IndustryStandard: Add DLL Characteristics
  BaseTools: GenFw: auto-set nxcompat flag

 MdePkg/Include/IndustryStandard/PeImage.h        |  17 +-
 BaseTools/Source/C/GenFw/GenFw.c                 |  69 ++++
 BaseTools/UserManuals/GenFw_Utility_Man_Page.rtf | 420 +++++++++++---------
 3 files changed, 308 insertions(+), 198 deletions(-)

-- 
2.41.0.windows.2


             reply	other threads:[~2023-07-13 15:24 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-13 15:24 Joey Vagedes [this message]
2023-07-13 15:24 ` [PATCH v3 1/2] MdePkg: IndustryStandard: Add DLL Characteristics Joey Vagedes
2023-10-17  1:13   ` [edk2-devel] " Rebecca Cran
2023-10-17 19:49   ` Rebecca Cran
2023-07-13 15:24 ` [PATCH v3 2/2] BaseTools: GenFw: auto-set nxcompat flag Joey Vagedes
2023-07-17  1:06   ` 回复: [edk2-devel] " gaoliming
2023-08-01 15:57   ` Joey Vagedes via groups.io
2023-08-01 16:05     ` Rebecca Cran
2023-08-02  3:15     ` 回复: " gaoliming via groups.io
2023-08-29 18:25     ` Joey Vagedes via groups.io
2023-10-17 19:34     ` Rebecca Cran
2023-10-17 19:56       ` Joey Vagedes via groups.io
2023-10-17 20:04         ` Rebecca Cran
2023-11-02  1:33         ` Rebecca Cran
2023-10-17  1:19   ` Rebecca Cran
2023-11-06 21:57 ` [edk2-devel] [PATCH v3 0/2] Automatically set NXCOMPAT bit if requirements are met Rebecca Cran
2023-11-06 22:49   ` Joey Vagedes via groups.io

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230713152436.220-1-joey.vagedes@gmail.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox