ARM: Keep exit text/data around for SMP_ON_UP
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 21 Feb 2011 10:13:36 +0000 (10:13 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 21 Feb 2011 19:29:27 +0000 (19:29 +0000)
commit1869002de668e484a41ee7ef41a4dd5e504cca5a
tree1e92e37f401c08b6950d4df29e7c68ec0866d20e
parent460dbaf29485ac7017d6ad7fae83a48ad6bb7937
ARM: Keep exit text/data around for SMP_ON_UP

When SMP_ON_UP is used and the spinlocks are inlined, we end up with
inline spinlocks in the exit code, with references from the SMP
alternatives section to the exit sections.  This causes link time
errors.  Avoid this by placing the exit sections in the init-discarded
region.

Cc: <stable@kernel.org>
Tested-by: Dave Martin <dave.martin@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/vmlinux.lds.S