x86/boot: Omit compression buffer from PE/COFF image memory footprint
authorArd Biesheuvel <ardb@kernel.org>
Tue, 12 Sep 2023 09:00:56 +0000 (09:00 +0000)
committerIngo Molnar <mingo@kernel.org>
Fri, 15 Sep 2023 09:18:41 +0000 (11:18 +0200)
commit8eace5b3555606e684739bef5bcdfcfe68235257
treee7053412ad54609650ce77df3196f0e4e5641055
parent768171d7ebbce005210e1cf8456f043304805c15
x86/boot: Omit compression buffer from PE/COFF image memory footprint

Now that the EFI stub decompresses the kernel and hands over to the
decompressed image directly, there is no longer a need to provide a
decompression buffer as part of the .BSS allocation of the PE/COFF
image. It also means the PE/COFF image can be loaded anywhere in memory,
and setting the preferred image base is unnecessary. So drop the
handling of this from the header and from the build tool.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20230912090051.4014114-22-ardb@google.com
arch/x86/boot/header.S
arch/x86/boot/tools/build.c