]> git.baikalelectronics.ru Git - kernel.git/commit
efi: libstub: Fix incorrect payload size in zboot header
authorArd Biesheuvel <ardb@kernel.org>
Thu, 20 Oct 2022 09:26:42 +0000 (11:26 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Fri, 21 Oct 2022 09:09:41 +0000 (11:09 +0200)
commit059535997498303a81a7bfb68ea4a0bcf2150365
tree560d3781a671108fc25817a347edd582f99e38af
parentfc93f5b9a08baae7062fd4367fe26eece5a1e824
efi: libstub: Fix incorrect payload size in zboot header

The linker script symbol definition that captures the size of the
compressed payload inside the zboot decompressor (which is exposed via
the image header) refers to '.' for the end of the region, which does
not give the correct result as the expression is not placed at the end
of the payload. So use the symbol name explicitly.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/zboot.lds