x86/decompressor: Factor out kernel decompression and relocation
authorArd Biesheuvel <ardb@kernel.org>
Mon, 7 Aug 2023 16:27:17 +0000 (18:27 +0200)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 7 Aug 2023 18:59:13 +0000 (20:59 +0200)
commit83381519352d6b5b3e429bf72aaab907480cb6b6
tree99ac13da6a50856123956ce17bb757b256ee6631
parent24388292e2d7fae79a0d4183cc91716b851299cf
x86/decompressor: Factor out kernel decompression and relocation

Factor out the decompressor sequence that invokes the decompressor,
parses the ELF and applies the relocations so that it can be called
directly from the EFI stub.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20230807162720.545787-21-ardb@kernel.org
arch/x86/boot/compressed/misc.c
arch/x86/include/asm/boot.h