diff options
author | Jan Beulich <jbeulich@novell.com> | 2011-07-08 13:23:05 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@novell.com> | 2011-07-08 13:23:05 +0100 |
commit | 7844f90abd551f6d5cd9b670b5ed8a4683258a21 (patch) | |
tree | c6eca22c8fb229900c4104fe53f3c4796edfa113 /xen/arch/x86/xen.lds.S | |
parent | 6b2c9b33a0695050e0e123cd0d935a901d83a905 (diff) | |
download | xen-7844f90abd551f6d5cd9b670b5ed8a4683258a21.tar.gz xen-7844f90abd551f6d5cd9b670b5ed8a4683258a21.tar.bz2 xen-7844f90abd551f6d5cd9b670b5ed8a4683258a21.zip |
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@novell.com>
Diffstat (limited to 'xen/arch/x86/xen.lds.S')
-rw-r--r-- | xen/arch/x86/xen.lds.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/arch/x86/xen.lds.S b/xen/arch/x86/xen.lds.S index 7679202d50..08e7fa0273 100644 --- a/xen/arch/x86/xen.lds.S +++ b/xen/arch/x86/xen.lds.S @@ -163,6 +163,7 @@ SECTIONS *(.eh_frame) #ifdef EFI *(.comment) + *(.comment.*) #endif } |