tianocore / projects

Empty repository to track all issues associated with TianoCore Projects
1 stars 0 forks source link

Memory Protections: Set NX Compat bit in edk2 build #33

Open makubacki opened 1 year ago

makubacki commented 1 year ago

To ease the ability for edk2 code to set the NX compat bit. This issue proposes setting in the build process (e.g. GenFw) under the following conditions:

  1. A 64 bit PE file
  2. Has 4K alignment or is evenly divisible by 4K
  3. No section has both Write and Execute
Javagedes commented 1 year ago

Initial PR to add functionality to MU_BASECORE Basetools: https://github.com/microsoft/mu_basecore/pull/456

Javagedes commented 1 year ago

bugzilla bug filed: https://bugzilla.tianocore.org/show_bug.cgi?id=4487 and a patch series has been sent to the mailing list.