All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xen/x86: explicitly mark start-of-file asm()s as .text
@ 2011-04-07 11:25 Tim Deegan
  0 siblings, 0 replies; only message in thread
From: Tim Deegan @ 2011-04-07 11:25 UTC (permalink / raw)
  To: xen-devel

# HG changeset patch
# User Tim Deegan <Tim.Deegan@citrix.com>
# 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@citrix.com>

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) \

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-04-07 11:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-07 11:25 [PATCH] xen/x86: explicitly mark start-of-file asm()s as .text Tim Deegan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.