xen/x86: explicitly mark start-of-file asm()s as .text
authorTim Deegan <Tim.Deegan@citrix.com>
Thu, 7 Apr 2011 14:08:05 +0000 (15:08 +0100)
committerTim Deegan <Tim.Deegan@citrix.com>
Thu, 7 Apr 2011 14:08:05 +0000 (15:08 +0100)
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>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/apic.c
xen/arch/x86/i8259.c

index cfdb13abf6e3c5aa6617b7335bb97be10cddb0b8..58f809ad42b215183c302d0d6138859b3fd24a55 100644 (file)
@@ -82,6 +82,7 @@ bool_t __read_mostly directed_eoi_enabled = 0;
  * 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)
index 824e1faba1bae00cc6a86e6b41c9534b441cb135..24f4f6d54c965c136c784edc79c36c67572d0ab7 100644 (file)
@@ -33,6 +33,8 @@
  * interrupt-controller happy.
  */
 
+__asm__(".section .text");
+
 BUILD_COMMON_IRQ()
 
 #define BI(x,y) \