]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3d694629a085c880103de65e974de432aa3fb0f6
treea26db2d1e49fb000a89a82d2a5a3930a7e0bd5b7
parent56547b6bd7e989167441941192f0896e72605e65
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