ARM: fix build error in arch/arm/kernel/process.c
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 19 Apr 2010 09:15:03 +0000 (10:15 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 21 Apr 2010 07:45:21 +0000 (08:45 +0100)
commit4260415f6a3b92c5c986398d96c314df37a4ccbf
tree13db8d997677c70d7b3f880daafab41d0b6711f3
parent05ce7bfe547c9fa967d9cab6c37867a9cb6fb3fa
ARM: fix build error in arch/arm/kernel/process.c

/tmp/ccJ3ssZW.s: Assembler messages:
/tmp/ccJ3ssZW.s:1952: Error: can't resolve `.text' {.text section} - `.LFB1077'

This is caused because:

.section .data
.section .text
.section .text
.previous

does not return us to the .text section, but the .data section; this
makes use of .previous dangerous if the ordering of previous sections
is not known.

Fix up the other users of .previous; .pushsection and .popsection are
a safer pairing to use than .section and .previous.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
19 files changed:
arch/arm/include/asm/assembler.h
arch/arm/include/asm/futex.h
arch/arm/include/asm/uaccess.h
arch/arm/kernel/entry-armv.S
arch/arm/kernel/ftrace.c
arch/arm/kernel/process.c
arch/arm/lib/backtrace.S
arch/arm/lib/clear_user.S
arch/arm/lib/copy_from_user.S
arch/arm/lib/copy_to_user.S
arch/arm/lib/csumpartialcopyuser.S
arch/arm/lib/getuser.S
arch/arm/lib/putuser.S
arch/arm/lib/strncpy_from_user.S
arch/arm/lib/strnlen_user.S
arch/arm/lib/uaccess.S
arch/arm/mm/alignment.c
arch/arm/mm/proc-sa1100.S
arch/arm/nwfpe/entry.S