Skip to content
Commit 4067a126 authored by Ard Biesheuvel's avatar Ard Biesheuvel
Browse files

efi/zboot: arm64: Grab code size from image header



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 text_offset field of the arm64 image
header after decompression, which is where the arm64 specific EFI zboot
make rules will poke the code size when generating the zboot specific
version of the binary Image payload.

Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent b3bef58b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment