]> xenbits.xensource.com Git - people/pauldu/xen.git/commitdiff
x86/link: Discard the alternatives ".discard" sections
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 7 Apr 2015 17:26:15 +0000 (18:26 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 10 Apr 2015 15:36:03 +0000 (11:36 -0400)
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 <andrew.cooper3@citrix.com>
CC: Keir Fraser <keir@xen.org>
CC: Jan Beulich <JBeulich@suse.com>
Reviewed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/xen.lds.S

index d4b1f1a5d3be0074e5a45541168487ac04de0a42..c8541813ed75a0b4d97749365ba16bbb0feb20e6 100644 (file)
@@ -197,6 +197,8 @@ SECTIONS
        *(.exit.text)
        *(.exit.data)
        *(.exitcall.exit)
+       *(.discard)
+       *(.discard.*)
        *(.eh_frame)
 #ifdef EFI
        *(.comment)