x86/EFI: don't have an overly large image size
authorJan Beulich <jbeulich@suse.com>
Mon, 26 Apr 2021 08:26:04 +0000 (10:26 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 26 Apr 2021 08:26:04 +0000 (10:26 +0200)
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 <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/xen.lds.S

index bc53ee459749ebc44e5f7983f604321f5c507331..34f647a44e75c2ac34050961a614741e83705756 100644 (file)
@@ -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) : {