diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2023-04-18 16:49:52 +0300 |
---|---|---|
committer | Ard Biesheuvel <ardb@kernel.org> | 2023-04-27 00:06:48 +0300 |
commit | 026b85796ab4d52af56f8a1c60d2613983ecd845 (patch) | |
tree | 95f62e56bf1dde770b51dcaada8fad9a9cf26656 /drivers/firmware/efi/libstub/efistub.h | |
parent | 45dd403da851124412d32e3193c21de4a51d29da (diff) | |
download | linux-026b85796ab4d52af56f8a1c60d2613983ecd845.tar.xz |
efi/zboot: arm64: Grab code size from ELF symbol in payload
Instead of relying on a dodgy dd hack to copy the image code size from
the uncompressed image's PE header to the end of the compressed image,
let's grab the code size from the symbol that is injected into the ELF
object by the Kbuild rules that generate the compressed payload.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Diffstat (limited to 'drivers/firmware/efi/libstub/efistub.h')
-rw-r--r-- | drivers/firmware/efi/libstub/efistub.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/firmware/efi/libstub/efistub.h b/drivers/firmware/efi/libstub/efistub.h index 148013bcb5f8..67d5a20802e0 100644 --- a/drivers/firmware/efi/libstub/efistub.h +++ b/drivers/firmware/efi/libstub/efistub.h @@ -1066,8 +1066,7 @@ struct screen_info *__alloc_screen_info(void); void free_screen_info(struct screen_info *si); void efi_cache_sync_image(unsigned long image_base, - unsigned long alloc_size, - unsigned long code_size); + unsigned long alloc_size); struct efi_smbios_record { u8 type; |