efi/x86: Set the PE/COFF header's NX compat flag unconditionally
authorArd Biesheuvel <ardb@kernel.org>
Tue, 16 Jan 2024 08:53:48 +0000 (09:53 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 28 Feb 2024 13:23:55 +0000 (14:23 +0100)
commit891f8890a4a3663da7056542757022870b499bc1
treee00ad1a44a5690d64f08961bd0496bc75c31a086
parent11e36b0f7c2150a6453872b79555767b43c846d0
efi/x86: Set the PE/COFF header's NX compat flag unconditionally

Now that the proper section and file alignment is used, and the EFI
memory attributes protocol to manage executable permissions where needed
is invoked, set the NX compat flag unconditionally.

  [ bp: Remove the "we"s. ]

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20240116085347.2193966-2-ardb+git@google.com
arch/x86/boot/header.S