Re: [edk2-devel] [PATCH v1 0/2] Automatically set NXCOMPAT bit if requirements are met

2023-06-27 Thread Joey Vagedes
Hi Ard, Talked to the team and I think the appropriate answer to this is to follow what is currently done through the MSVC FLAGS, i.e. that any PE that knowingly does not meet these requirements manually opts out of NXCOMPAT via the /NXCOMPAT:no flag. That means adding a flag to GENFW: "--nxcompat

Re: [edk2-devel] [PATCH v1 0/2] Automatically set NXCOMPAT bit if requirements are met

2023-06-26 Thread Joey Vagedes
ore? > > Thanks > Liming > > -邮件原件- > > 发件人: devel@edk2.groups.io 代表 Joey Vagedes > > 发送时间: 2023年6月23日 23:45 > > 收件人: devel@edk2.groups.io > > 抄送: Michael D Kinney ; Liming Gao > > ; Zhiguang Liu ; > > Rebecca Cran ; Bob Feng ; > > Yuwei

回复: [edk2-devel] [PATCH v1 0/2] Automatically set NXCOMPAT bit if requirements are met

2023-06-24 Thread gaoliming via groups.io
; 抄送: Michael D Kinney ; Liming Gao > ; Zhiguang Liu ; > Rebecca Cran ; Bob Feng ; > Yuwei Chen > 主题: [edk2-devel] [PATCH v1 0/2] Automatically set NXCOMPAT bit if > requirements are met > > Utilize GenFw to automatically set the NXCOMPAT bit of the DLL > Characteristic

Re: [edk2-devel] [PATCH v1 0/2] Automatically set NXCOMPAT bit if requirements are met

2023-06-23 Thread Ard Biesheuvel
On Fri, 23 Jun 2023 at 18:03, Joey Vagedes wrote: > > 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 i

[edk2-devel] [PATCH v1 0/2] Automatically set NXCOMPAT bit if requirements are met

2023-06-23 Thread Joey Vagedes
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 C