cris: Fix section mismatches in architecture startup code
authorGuenter Roeck <linux@roeck-us.net>
Tue, 10 Nov 2015 22:04:36 +0000 (14:04 -0800)
committerJesper Nilsson <jespern@axis.com>
Tue, 15 Dec 2015 13:03:19 +0000 (14:03 +0100)
commitf9f3f864b5e8c09d7837d8980edba4ad52969819
treea26db2d1e49fb000a89a82d2a5a3930a7e0bd5b7
parent56edefc98a1c3c8124823ed45260c1c912f81bb3
cris: Fix section mismatches in architecture startup code

Section mismatches can now result in build failures.
As result, cris:allnoconfig fails to build as follows.

WARNING: modpost: Found 7 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
FATAL: modpost: Section mismatches detected.
Set CONFIG_SECTION_MISMATCH_WARN_ONLY=y to allow them.

Part of the problem is that references from .text to .init.text
are not permitted, and such references are used in cris startup code.
Since references from .head.text to .init.text are permitted, move
cris startup code to a new section .head.text.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
arch/cris/arch-v10/kernel/head.S
arch/cris/arch-v32/kernel/head.S
arch/cris/kernel/vmlinux.lds.S