From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ewosI-0001qE-Fi for barebox@lists.infradead.org; Fri, 16 Mar 2018 12:54:26 +0000 From: Sascha Hauer Subject: [PATCH 27/78] ARM: move linker variable declarations to sections.h Date: Fri, 16 Mar 2018 13:53:03 +0100 Message-Id: <20180316125354.23462-28-s.hauer@pengutronix.de> In-Reply-To: <20180316125354.23462-1-s.hauer@pengutronix.de> References: <20180316125354.23462-1-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org To: Barebox List We collected most linker variable declarations in asm/sections.h, so move __exceptions_start/__exceptions_stop there aswell. Signed-off-by: Sascha Hauer --- arch/arm/cpu/mmu.c | 1 + arch/arm/cpu/no-mmu.c | 2 +- arch/arm/include/asm/barebox-arm.h | 2 -- arch/arm/include/asm/sections.h | 2 ++ 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/cpu/mmu.c b/arch/arm/cpu/mmu.c index 27d994d452..de0b631981 100644 --- a/arch/arm/cpu/mmu.c +++ b/arch/arm/cpu/mmu.c @@ -30,6 +30,7 @@ #include #include #include +#include #include "mmu.h" diff --git a/arch/arm/cpu/no-mmu.c b/arch/arm/cpu/no-mmu.c index e227b457a1..7268fa9b9d 100644 --- a/arch/arm/cpu/no-mmu.c +++ b/arch/arm/cpu/no-mmu.c @@ -28,7 +28,7 @@ #include #include #include - +#include #define __exceptions_size (__exceptions_stop - __exceptions_start) diff --git a/arch/arm/include/asm/barebox-arm.h b/arch/arm/include/asm/barebox-arm.h index 6c7507a9c7..fa673a63a7 100644 --- a/arch/arm/include/asm/barebox-arm.h +++ b/arch/arm/include/asm/barebox-arm.h @@ -32,8 +32,6 @@ #include #include -extern char __exceptions_start[], __exceptions_stop[]; - unsigned long get_runtime_offset(void); /* global_variable_offset() - Access global variables when not running at link address diff --git a/arch/arm/include/asm/sections.h b/arch/arm/include/asm/sections.h index b3ada62ee8..6933c7032d 100644 --- a/arch/arm/include/asm/sections.h +++ b/arch/arm/include/asm/sections.h @@ -8,6 +8,8 @@ extern char __rel_dyn_start[]; extern char __rel_dyn_end[]; extern char __dynsym_start[]; extern char __dynsym_end[]; +extern char __exceptions_start[]; +extern char __exceptions_stop[]; #endif -- 2.16.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox