diff options
author | Heinrich Schuchardt <[email protected]> | 2024-09-29 16:02:33 +0200 |
---|---|---|
committer | Palmer Dabbelt <[email protected]> | 2024-10-25 06:18:38 -0700 |
commit | d41373a4b910961df5a5e3527d7bde6ad45ca438 (patch) | |
tree | 5605d0b32d1515b3afba49f2da0d6909786ad896 /tools/perf/scripts/python/gecko.py | |
parent | 33549fcf37ec461f398f0a41e1c9948be2e5aca4 (diff) |
riscv: efi: Set NX compat flag in PE/COFF header
The IMAGE_DLLCHARACTERISTICS_NX_COMPAT informs the firmware that the
EFI binary does not rely on pages that are both executable and
writable.
The flag is used by some distro versions of GRUB to decide if the EFI
binary may be executed.
As the Linux kernel neither has RWX sections nor needs RWX pages for
relocation we should set the flag.
Cc: Ard Biesheuvel <[email protected]>
Cc: <[email protected]>
Signed-off-by: Heinrich Schuchardt <[email protected]>
Reviewed-by: Emil Renner Berthing <[email protected]>
Fixes: cb7d2dd5612a ("RISC-V: Add PE/COFF header for EFI stub")
Acked-by: Ard Biesheuvel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions