diff options
author | Guenter Roeck <linux@roeck-us.net> | 2015-11-10 14:04:36 -0800 |
---|---|---|
committer | Jesper Nilsson <jespern@axis.com> | 2015-12-15 14:03:19 +0100 |
commit | f9f3f864b5e8c09d7837d8980edba4ad52969819 (patch) | |
tree | a26db2d1e49fb000a89a82d2a5a3930a7e0bd5b7 /arch/cris/kernel | |
parent | 56edefc98a1c3c8124823ed45260c1c912f81bb3 (diff) | |
download | linux-f9f3f864b5e8c09d7837d8980edba4ad52969819.tar.gz linux-f9f3f864b5e8c09d7837d8980edba4ad52969819.tar.bz2 linux-f9f3f864b5e8c09d7837d8980edba4ad52969819.zip |
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>
Diffstat (limited to 'arch/cris/kernel')
-rw-r--r-- | arch/cris/kernel/vmlinux.lds.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/cris/kernel/vmlinux.lds.S b/arch/cris/kernel/vmlinux.lds.S index a68b983dcea1..7552c2557506 100644 --- a/arch/cris/kernel/vmlinux.lds.S +++ b/arch/cris/kernel/vmlinux.lds.S @@ -40,6 +40,7 @@ SECTIONS _stext = .; __stext = .; .text : { + HEAD_TEXT TEXT_TEXT SCHED_TEXT LOCK_TEXT |