From: Andrew Cooper Date: Tue, 7 Apr 2015 17:26:15 +0000 (+0100) Subject: x86/link: Discard the alternatives ".discard" sections X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~3450 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4202a21cf6ab7ddfeef595f5a99f7da0afca262c;p=xen.git x86/link: Discard the alternatives ".discard" sections This appears to have been missed when porting the alternatives framework from Linux, and saves us a section which is otherwise loaded into memory. Signed-off-by: Andrew Cooper CC: Keir Fraser CC: Jan Beulich Reviewed-by: Tim Deegan --- diff --git a/xen/arch/x86/xen.lds.S b/xen/arch/x86/xen.lds.S index d4b1f1a5d3..c8541813ed 100644 --- a/xen/arch/x86/xen.lds.S +++ b/xen/arch/x86/xen.lds.S @@ -197,6 +197,8 @@ SECTIONS *(.exit.text) *(.exit.data) *(.exitcall.exit) + *(.discard) + *(.discard.*) *(.eh_frame) #ifdef EFI *(.comment)