]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/efi: Drop alignment flags from PE section headers
authorArd Biesheuvel <ardb@kernel.org>
Tue, 12 Sep 2023 09:00:54 +0000 (09:00 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Feb 2024 08:25:25 +0000 (09:25 +0100)
commite17a8bf1fb5d655e46a7f67eebe6ab7c1f4232d0
tree902f609ca2ff41a3bc5915e3d918f5123fa235ad
parent8117961d98fb2d335ab6de2cad7afb8b6171f5fe
x86/efi: Drop alignment flags from PE section headers

commit bfab35f552ab3dd6d017165bf9de1d1d20f198cc upstream.

The section header flags for alignment are documented in the PE/COFF
spec as being applicable to PE object files only, not to PE executables
such as the Linux bzImage, so let's drop them from the PE header.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20230912090051.4014114-20-ardb@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/boot/header.S