From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ww0-f49.google.com ([74.125.82.49]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1OEhuX-0007Im-8x for barebox@lists.infradead.org; Wed, 19 May 2010 11:58:06 +0000 Received: by wwb24 with SMTP id 24so804905wwb.36 for ; Wed, 19 May 2010 04:58:03 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20100519112750.GN31199@pengutronix.de> References: <20100519112750.GN31199@pengutronix.de> Date: Wed, 19 May 2010 13:58:02 +0200 Message-ID: From: Ivo Clarysse List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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: Re: board_init_lowlevel_return: Error: symbol ABS is in a different section To: Sascha Hauer Cc: barebox@lists.infradead.org On Wed, May 19, 2010 at 1:27 PM, Sascha Hauer wrote: [...] >> Is this a problem with the toolchain I use, or should barebox be patched ? > > This works with our toolchain, but it may be that I used some 'feature' > which is not supposed to work. Anyway, I like the way you did it above > better as my approach, so how about the following patch which is a > slight modification from yours: > > > From 84aea4781ec1e99481530b4d5a122ce4e95d2266 Mon Sep 17 00:00:00 2001 > From: Sascha Hauer > Date: Wed, 19 May 2010 13:23:43 +0200 > Subject: [PATCH] arm start.c: Make runtime function address calculation tolerant for more compilers This builds using the CodeSourcery G++ toolchain (compile-tested only, with releases 2009q3 and 2010q1). I couldn't find anything in the GAS manual that would explain the presence of an automatic "0:" label. http://sourceware.org/binutils/docs-2.20/as/ARM-Opcodes.html#ARM-Opcodes : ADR adr