From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SAzSe-00028z-9T for barebox@lists.infradead.org; Fri, 23 Mar 2012 08:03:05 +0000 From: Sascha Hauer Date: Fri, 23 Mar 2012 09:02:41 +0100 Message-Id: <1332489762-28709-2-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1332489762-28709-1-git-send-email-s.hauer@pengutronix.de> References: <1332489762-28709-1-git-send-email-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-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 1/2] ARM linker script: Fix barebox_image_size To: barebox@lists.infradead.org barebox_image_size was calculated wrong when PRE_IMAGE is defined. In this case _text does not refer to the binary image start. We have to use TEXT_BASE here. Signed-off-by: Sascha Hauer --- arch/arm/lib/barebox.lds.S | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/lib/barebox.lds.S b/arch/arm/lib/barebox.lds.S index bc20694..3fd271b 100644 --- a/arch/arm/lib/barebox.lds.S +++ b/arch/arm/lib/barebox.lds.S @@ -105,5 +105,5 @@ SECTIONS .bss : { *(.bss*) } __bss_stop = .; _end = .; - _barebox_image_size = __bss_start - _text; + _barebox_image_size = __bss_start - TEXT_BASE; } -- 1.7.9.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox