Skip to content

Commit

Permalink
x86: fix usage of .section .sched.text in assembler code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sam Ravnborg authored and Ingo Molnar committed Jan 30, 2008
1 parent adb8dae commit c6c2d7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/x86/lib/semaphore_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/lib/thunk_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c6c2d7a

Please sign in to comment.