[edk2-devel] [PATCH v2 0/2] Automatically set NXCOMPAT bit if requirements are met
Joey Vagedes via groups.io
joeyvagedes=microsoft.com at groups.io
Wed Jun 28 17:39:05 UTC 2023
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 at intel.com>
Cc: Liming Gao <gaoliming at byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang.liu at intel.com>
Cc: Rebecca Cran <rebecca at bsdio.com>
Cc: Bob Feng <bob.c.feng at intel.com>
Cc: Yuwei Chen <yuwei.chen at 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
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#106476): https://edk2.groups.io/g/devel/message/106476
Mute This Topic: https://groups.io/mt/99835854/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list