From patchwork Mon Nov 29 10:37:20 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sanjeev Premi X-Patchwork-Id: 73409 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 6CA0FB6EEB for ; Mon, 29 Nov 2010 21:37:37 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 055A3281DB; Mon, 29 Nov 2010 11:37:36 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lI-H08HJDpCp; Mon, 29 Nov 2010 11:37:35 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 83256281C0; Mon, 29 Nov 2010 11:37:34 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 35BE9281C0 for ; Mon, 29 Nov 2010 11:37:33 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qbtNbB70e+zd for ; Mon, 29 Nov 2010 11:37:31 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from arroyo.ext.ti.com (arroyo.ext.ti.com [192.94.94.40]) by theia.denx.de (Postfix) with ESMTPS id 055A12818F for ; Mon, 29 Nov 2010 11:37:29 +0100 (CET) Received: from dbdp20.itg.ti.com ([172.24.170.38]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id oATAbN87003586 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 29 Nov 2010 04:37:26 -0600 Received: from dbde71.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id oATAbMxX007522; Mon, 29 Nov 2010 16:07:22 +0530 (IST) Received: from dbde02.ent.ti.com ([172.24.170.145]) by dbde71.ent.ti.com ([172.24.170.149]) with mapi; Mon, 29 Nov 2010 16:07:22 +0530 From: "Premi, Sanjeev" To: Albert ARIBAUD , "u-boot@lists.denx.de" Date: Mon, 29 Nov 2010 16:07:20 +0530 Thread-Topic: Build failures with older toolchain Thread-Index: AcuPsMTG/crKhDRCSQeYLkiuC49vdwAAFoDQ Message-ID: References: <20101119201353.B2CB314EA7E@gemini.denx.de> <4CEA7ECB.1050803@free.fr> <4CEA8AF2.40904@free.fr> <4CF38141.6@free.fr> In-Reply-To: <4CF38141.6@free.fr> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Subject: Re: [U-Boot] Build failures with older toolchain X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de > -----Original Message----- > From: Albert ARIBAUD [mailto:albert.aribaud@free.fr] > Sent: Monday, November 29, 2010 4:03 PM > To: u-boot@lists.denx.de > Cc: Premi, Sanjeev > Subject: Re: Build failures with older toolchain > > Le 29/11/2010 10:47, Premi, Sanjeev a écrit : > > > Albert, > > > > I saw some more - what I believe related changes - since last week; > > but the linker error still persists. > > > > with 2009-q1 toolchain: > > ----------------------- > > busb_phy.o drivers/video/libvideo.o > drivers/watchdog/libwatchdog.o common/libcommon.o > lib/libfdt/libfdt.o api/libapi.o post/libpost.o > arch/arm/cpu/armv7/omap-common/libomap-common.o > board/ti/evm/libevm.o --end-group > /db/psp_git/users/a0756819/u-boot/arch/arm/lib/eabi_compat.o > -L > /opt/codesourcery/2009q1-203/bin/../lib/gcc/arm-none-linux-gnu > eabi/4.3.3 -lgcc -Map u-boot.map -o u-boot > > arm-none-linux-gnueabi-ld: section .bss [8003f5c0 -> > 8007e31f] overlaps section .rel.dyn [8003f5c0 -> 80044e4f] > > arm-none-linux-gnueabi-ld: section .dynsym [80044e50 -> > 80044eef] overlaps section .bss [8003f5c0 -> 8007e31f] > > arm-none-linux-gnueabi-ld: u-boot: section .bss vma > 0x8003f5c0 overlaps previous sections > > make: *** [u-boot] Error 1 > > > > with 2010-q1 toolchain: > > ----------------------- > > mmon/libomap-common.o board/ti/evm/libevm.o --end-group > /db/psp_git/users/a0756819/u-boot/arch/arm/lib/eabi_compat.o > -L > /opt/codesourcery/2010q1-202/bin/../lib/gcc/arm-none-linux-gnu > eabi/4.4.1/armv4t -lgcc -Map u-boot.map -o u-boot > > arm-none-linux-gnueabi-ld: u-boot: section .bss vma > 0x8003e8e0 overlaps previous sections > > arm-none-linux-gnueabi-objcopy -O srec u-boot u-boot.srec > > arm-none-linux-gnueabi-objcopy --gap-fill=0xff -O binary > u-boot u-boot.bin > > Weird... I've compiled v2010.12-rc2, for boards omap3_evm, > omap3_overo > and omap3_beagle, with 2010q1, and here is what I get, which is quite > different from what you get: > > albert@lilith:~/src/u-boot$ ./MAKEALL omap3_evm omap3_overo > omap3_beagle > Configuring for omap3_evm board... > start.S: Assembler messages: > start.S:144: Error: constant expression expected -- `ldr > sp,=((0x4020FFFC-CONFIG_SYS_GBL_DATA_SIZE))' > make[1]: *** [start.o] Erreur 1 > make: *** [arch/arm/cpu/armv7/start.o] Erreur 2 > make: *** Attente des tâches non terminées.... > arm-none-linux-gnueabi-size: './u-boot': No such file > Configuring for omap3_overo board... > text data bss dec hex filename > 212965 10840 210624 434429 6a0fd ./u-boot > Configuring for omap3_beagle board... > text data bss dec hex filename > 243182 11300 203648 458130 6fd92 ./u-boot > > --------------------- SUMMARY ---------------------------- > Boards compiled: 3 > Boards with warnings or errors: 1 ( omap3_evm ) > ---------------------------------------------------------- > albert@lilith:~/src/u-boot$ [sp] Did you apply the patch I sent to off-the-list? (pasted below) I had been holding this patch until until the problem is really solved - just in case there was a relation. [patch] [/patch] > > > Best regards, > > Sanjeev > > Amicalement, > -- > Albert. > diff --git a/include/configs/omap3_evm.h b/include/configs/omap3_evm.h index aeb45c6..c93f689 100644 --- a/include/configs/omap3_evm.h +++ b/include/configs/omap3_evm.h @@ -348,7 +348,9 @@ extern unsigned int boot_flash_type; * Support for relocation */ #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1 -#define CONFIG_SYS_INIT_SP_ADDR (LOW_LEVEL_SRAM_STACK - CONFIG_SYS_GBL_D +#define CONFIG_SYS_INIT_SP_ADDR (LOW_LEVEL_SRAM_STACK \ + - GENERATED_GBL_DATA_SIZE) + /* * Define the board revision statically