public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Automatically set NXCOMPAT bit if requirements are met
@ 2023-06-28 17:39 joeyvagedes
  2023-06-28 17:39 ` [PATCH v2 1/2] MdePkg: IndustryStandard: Add DLL Characteristics Joey Vagedes
  2023-06-28 17:39 ` [PATCH v2 2/2] BaseTools: GenFw: auto-set nxcompat flag Joey Vagedes
  0 siblings, 2 replies; 4+ messages in thread
From: joeyvagedes @ 2023-06-28 17:39 UTC (permalink / raw)
  To: devel
  Cc: Michael D Kinney, Liming Gao, Zhiguang Liu, Rebecca Cran,
	Bob Feng, Yuwei Chen

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4487

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: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang.liu@intel.com>
Cc: Rebecca Cran <rebecca@bsdio.com>
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                 |  70 ++++
 BaseTools/UserManuals/GenFw_Utility_Man_Page.rtf | 420 +++++++++++---------
 3 files changed, 309 insertions(+), 198 deletions(-)

-- 
2.41.0.windows.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-06-28 18:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-28 17:39 [PATCH v2 0/2] Automatically set NXCOMPAT bit if requirements are met joeyvagedes
2023-06-28 17:39 ` [PATCH v2 1/2] MdePkg: IndustryStandard: Add DLL Characteristics Joey Vagedes
2023-06-28 18:03   ` Michael D Kinney
2023-06-28 17:39 ` [PATCH v2 2/2] BaseTools: GenFw: auto-set nxcompat flag Joey Vagedes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox