From: Jan Beulich Date: Mon, 26 Apr 2021 08:26:04 +0000 (+0200) Subject: x86/EFI: don't have an overly large image size X-Git-Tag: archive/raspbian/4.16.0+51-g0941d6cb-1+rpi1~2^2~42^2~603 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=11e7f0fe72ca0060762d18268e0388731fe8ccb6;p=xen.git x86/EFI: don't have an overly large image size While without debug info the difference is benign (so far), since we pad the image to 16Mb anyway, forcing the .reloc section to a 2Mb boundary causes subsequent .debug_* sections to go farther beyond 16Mb than needed. There's no reason to advance . for establishing __2M_rwdata_end, as all data past _end is of no interest at runtime anymore anyway. Signed-off-by: Jan Beulich Reviewed-by: Roger Pau Monné --- diff --git a/xen/arch/x86/xen.lds.S b/xen/arch/x86/xen.lds.S index bc53ee4597..34f647a44e 100644 --- a/xen/arch/x86/xen.lds.S +++ b/xen/arch/x86/xen.lds.S @@ -303,8 +303,7 @@ SECTIONS } PHDR(text) _end = . ; - . = ALIGN(SECTION_ALIGN); - __2M_rwdata_end = .; + __2M_rwdata_end = ALIGN(SECTION_ALIGN); #ifdef EFI .reloc ALIGN(4) : {