]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/boot: Construct PE/COFF .text section from assembler
authorArd Biesheuvel <ardb@kernel.org>
Fri, 15 Sep 2023 17:16:29 +0000 (17:16 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Feb 2024 08:25:26 +0000 (09:25 +0100)
commit0db81e8e20f60a0b357584d746a9ad8bc3f7c579
treee31c4ea68723faa8943a8a7a4b37c45ad9e23a32
parent0cf3d613a1410a2809de60dcea337b821ac96390
x86/boot: Construct PE/COFF .text section from assembler

commit efa089e63b56bdc5eca754b995cb039dd7a5457e upstream.

Now that the size of the setup block is visible to the assembler, it is
possible to populate the PE/COFF header fields from the asm code
directly, instead of poking the values into the binary using the build
tool. This will make it easier to reorganize the section layout without
having to tweak the build tool in lockstep.

This change has no impact on the resulting bzImage binary.

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