WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] xen/x86: explicitly mark start-of-file asm()s as .te

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] xen/x86: explicitly mark start-of-file asm()s as .text
From: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Date: Thu, 7 Apr 2011 12:25:49 +0100
Delivery-date: Thu, 07 Apr 2011 04:29:35 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.6.4
# HG changeset patch
# User Tim Deegan <Tim.Deegan@xxxxxxxxxx>
# Date 1302175146 -3600
# Node ID a35934cbfca842e8fb43d16eb488d9da3fb3ebe7
# Parent  a70a04e1447fedc781cfedcbea5fbeffc97690de
xen/x86: explicitly mark start-of-file asm()s as .text

LLVM and gold between them get confused when asm align commands
are emitted before a section marker.

Signed-off-by: Tim Deegan <Tim.Deegan@xxxxxxxxxx>

diff -r a70a04e1447f -r a35934cbfca8 xen/arch/x86/apic.c
--- a/xen/arch/x86/apic.c       Thu Apr 07 12:18:57 2011 +0100
+++ b/xen/arch/x86/apic.c       Thu Apr 07 12:19:06 2011 +0100
@@ -82,6 +82,7 @@ bool_t __read_mostly directed_eoi_enable
  * is no hardware IRQ pin equivalent for them, they are triggered
  * through the ICC by us (IPIs)
  */
+__asm__(".section .text");
 BUILD_SMP_INTERRUPT(irq_move_cleanup_interrupt,IRQ_MOVE_CLEANUP_VECTOR)
 BUILD_SMP_INTERRUPT(event_check_interrupt,EVENT_CHECK_VECTOR)
 BUILD_SMP_INTERRUPT(invalidate_interrupt,INVALIDATE_TLB_VECTOR)
diff -r a70a04e1447f -r a35934cbfca8 xen/arch/x86/i8259.c
--- a/xen/arch/x86/i8259.c      Thu Apr 07 12:18:57 2011 +0100
+++ b/xen/arch/x86/i8259.c      Thu Apr 07 12:19:06 2011 +0100
@@ -33,6 +33,8 @@
  * interrupt-controller happy.
  */
 
+__asm__(".section .text");
+
 BUILD_COMMON_IRQ()
 
 #define BI(x,y) \

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] xen/x86: explicitly mark start-of-file asm()s as .text, Tim Deegan <=