diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-01-30 07:33:37 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:33:37 -0500 |
commit | c6c2d7a084d14a8a701be84872aa1b77d2945f46 (patch) | |
tree | e721a8d750103b9738d50665b38ef87e5fbf4cf2 /arch/x86/lib | |
parent | adb8daed46356d1772e8bd8def1b70c8cb58ce12 (diff) |
x86: fix usage of .section .sched.text in assembler code
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>
Diffstat (limited to 'arch/x86/lib')
-rw-r--r-- | arch/x86/lib/semaphore_32.S | 2 | ||||
-rw-r--r-- | arch/x86/lib/thunk_64.S | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/lib/semaphore_32.S b/arch/x86/lib/semaphore_32.S index e2c6e0d5e125..3899bd37fdf0 100644 --- a/arch/x86/lib/semaphore_32.S +++ b/arch/x86/lib/semaphore_32.S | |||
@@ -29,7 +29,7 @@ | |||
29 | * registers (%eax, %edx and %ecx) except %eax whish is either a return | 29 | * registers (%eax, %edx and %ecx) except %eax whish is either a return |
30 | * value or just clobbered.. | 30 | * value or just clobbered.. |
31 | */ | 31 | */ |
32 | .section .sched.text | 32 | .section .sched.text, "ax" |
33 | ENTRY(__down_failed) | 33 | ENTRY(__down_failed) |
34 | CFI_STARTPROC | 34 | CFI_STARTPROC |
35 | FRAME | 35 | FRAME |
diff --git a/arch/x86/lib/thunk_64.S b/arch/x86/lib/thunk_64.S index 6ea73f3de567..8b92d428ab02 100644 --- a/arch/x86/lib/thunk_64.S +++ b/arch/x86/lib/thunk_64.S | |||
@@ -33,7 +33,7 @@ | |||
33 | .endm | 33 | .endm |
34 | 34 | ||
35 | 35 | ||
36 | .section .sched.text | 36 | .section .sched.text, "ax" |
37 | #ifdef CONFIG_RWSEM_XCHGADD_ALGORITHM | 37 | #ifdef CONFIG_RWSEM_XCHGADD_ALGORITHM |
38 | thunk rwsem_down_read_failed_thunk,rwsem_down_read_failed | 38 | thunk rwsem_down_read_failed_thunk,rwsem_down_read_failed |
39 | thunk rwsem_down_write_failed_thunk,rwsem_down_write_failed | 39 | thunk rwsem_down_write_failed_thunk,rwsem_down_write_failed |