From f9f3f864b5e8c09d7837d8980edba4ad52969819 Mon Sep 17 00:00:00 2001 From: Guenter Roeck Date: Tue, 10 Nov 2015 14:04:36 -0800 Subject: 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 Signed-off-by: Jesper Nilsson --- arch/cris/arch-v32/kernel/head.S | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'arch/cris/arch-v32') diff --git a/arch/cris/arch-v32/kernel/head.S b/arch/cris/arch-v32/kernel/head.S index ea6366800df7..5ce83eb54f58 100644 --- a/arch/cris/arch-v32/kernel/head.S +++ b/arch/cris/arch-v32/kernel/head.S @@ -4,6 +4,8 @@ * Copyright (C) 2003, Axis Communications AB */ +#include + #define ASSEMBLER_MACROS_ONLY /* @@ -36,7 +38,7 @@ .global nand_boot .global swapper_pg_dir - .text + __HEAD tstart: ;; This is the entry point of the kernel. The CPU is currently in ;; supervisor mode. @@ -177,7 +179,7 @@ _inflash0: ;; Put the following in a section so that storage for it can be ;; reclaimed after init is finished. - .section ".init.text", "ax" + __INIT _inflash: -- cgit v1.2.3