]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Feb 2024 08:25:26 +0000 (09:25 +0100)
commit4bac079dba042caf35b87471d7b9c739481219d7
treeba764bf2f1679a1cc7404a17808b50730d011874
parentd9b6b6e8d871b6ca8d3c8f0d2bb7f327edaf7a2e
x86/boot: Omit compression buffer from PE/COFF image memory footprint

commit 8eace5b3555606e684739bef5bcdfcfe68235257 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/boot/header.S
arch/x86/boot/tools/build.c