[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] x86-64/EFI: discard .comment.* sections



# HG changeset patch
# User Jan Beulich <jbeulich@xxxxxxxxxx>
# Date 1310127785 -3600
# Node ID 88823213a4780ebced6d7adcb1ffd2dda6a339ca
# Parent  d1a2861b9caa1a428a531c0d68b372df872d5b0d
x86-64/EFI: discard .comment.* sections

The SuSE version of gcc produces a non-standard section named
.comment.SUSE.OPTs, but the PE32+ handling in binutils can't really
deal with any section to be placed at virtual address zero (and not
needing to be loaded). Even if binutils did, at least the UEFI
implementation in EDK 1.06 doesn't look at the section characteristics
at all, and hence would attempt to load such a section, and fail or
corrupt other data.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---


diff -r d1a2861b9caa -r 88823213a478 xen/arch/x86/xen.lds.S
--- a/xen/arch/x86/xen.lds.S    Fri Jul 08 13:21:53 2011 +0100
+++ b/xen/arch/x86/xen.lds.S    Fri Jul 08 13:23:05 2011 +0100
@@ -163,6 +163,7 @@
        *(.eh_frame)
 #ifdef EFI
        *(.comment)
+       *(.comment.*)
 #endif
   }
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.