diff options
author | Joey Vagedes <joeyvagedes@microsoft.com> | 2023-07-13 08:24:36 -0700 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-11-06 21:44:34 +0000 |
commit | da219919538b679d5cf7387f4eba6c20384bf868 (patch) | |
tree | 1d2332898af6c9ec5bf979f74302b503c7c0e224 /OvmfPkg/Fdt | |
parent | e53c618ea4928820eea5a6d778395ce1e6145cbc (diff) | |
download | edk2-da219919538b679d5cf7387f4eba6c20384bf868.tar.gz |
BaseTools: GenFw: auto-set nxcompat flag
Automatically set the nxcompat flag in the DLL Characteristics field of
the Optional Header of the PE32+ image. For this flag to be set
automatically, the section alignment must be evenly divisible
by 4K (EFI_PAGE_SIZE) and no section must be executable and writable.
Adds a command line flag to GenFw, --nonxcompat, to ensure the
IMAGE_DLLCHARACTERISTICS_NX_COMPAT bit is not set, even if all
requirements are met. Updates the manual for GenFw to include the new
flag.
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>
Signed-off-by: Joey Vagedes <joeyvagedes@gmail.com>
Acked-by: Liming Gao <gaoliming@byosoft.com.cn>
Reviewed-by: Rebecca Cran <rebecca@bsdio.com>
Diffstat (limited to 'OvmfPkg/Fdt')
0 files changed, 0 insertions, 0 deletions