This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] x86-64/EFI: discard .comment.* sections
From: Xen patchbot-unstable <patchbot@xxxxxxx>
Date: Sun, 10 Jul 2011 08:44:16 +0100
Delivery-date: Sun, 10 Jul 2011 00:46:16 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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 @@
 #ifdef EFI
+       *(.comment.*)

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] x86-64/EFI: discard .comment.* sections, Xen patchbot-unstable <=