]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86: fix usage of .section .sched.text in assembler code
authorSam Ravnborg <sam@ravnborg.org>
Wed, 30 Jan 2008 12:33:37 +0000 (13:33 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:33:37 +0000 (13:33 +0100)
Without this patch the linker will generate a section
named .sched.text.1 which is unexpected.
This is because the gcc generated section has "ax" but the
assembler usage of .sched.text lacks the "ax" specifier.

It would be better to have a definition we could use from
assembler code but I did not find a suitable header
file for it.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/lib/semaphore_32.S
arch/x86/lib/thunk_64.S

index e2c6e0d5e12524dfca01a303b22cc7eef0398c1c..3899bd37fdf0b445cfca6b4f747950b371cebe82 100644 (file)
@@ -29,7 +29,7 @@
  * registers (%eax, %edx and %ecx) except %eax whish is either a return
  * value or just clobbered..
  */
-       .section .sched.text
+       .section .sched.text, "ax"
 ENTRY(__down_failed)
        CFI_STARTPROC
        FRAME
index 6ea73f3de5677320c835234b70613413e746db35..8b92d428ab028833e7f21725302e9303347df73a 100644 (file)
@@ -33,7 +33,7 @@
        .endm
        
 
-       .section .sched.text
+       .section .sched.text, "ax"
 #ifdef CONFIG_RWSEM_XCHGADD_ALGORITHM
        thunk rwsem_down_read_failed_thunk,rwsem_down_read_failed
        thunk rwsem_down_write_failed_thunk,rwsem_down_write_failed