Commit 53a7ea28 authored by Ard Biesheuvel's avatar Ard Biesheuvel

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: default avatarArd Biesheuvel <ardb@kernel.org>
parent db14655a
...@@ -38,7 +38,8 @@ SECTIONS ...@@ -38,7 +38,8 @@ SECTIONS
} }
} }
PROVIDE(__efistub__gzdata_size = ABSOLUTE(. - __efistub__gzdata_start)); PROVIDE(__efistub__gzdata_size =
ABSOLUTE(__efistub__gzdata_end - __efistub__gzdata_start));
PROVIDE(__data_rawsize = ABSOLUTE(_edata - _etext)); PROVIDE(__data_rawsize = ABSOLUTE(_edata - _etext));
PROVIDE(__data_size = ABSOLUTE(_end - _etext)); PROVIDE(__data_size = ABSOLUTE(_end - _etext));
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment