From patchwork Mon Mar 5 08:39:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Schocher X-Patchwork-Id: 144628 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 3FDCFB6EE8 for ; Mon, 5 Mar 2012 19:39:59 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8F0B4280AD; Mon, 5 Mar 2012 09:39:57 +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 3jbTWUGfWzFj; Mon, 5 Mar 2012 09:39:56 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9EC1F280A7; Mon, 5 Mar 2012 09:39:53 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B5762280A7 for ; Mon, 5 Mar 2012 09:39:47 +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 piVutrYJJvTN for ; Mon, 5 Mar 2012 09:39:45 +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 a.relay.invitel.net (a.relay.invitel.net [62.77.203.3]) by theia.denx.de (Postfix) with ESMTP id 7FE23280A5 for ; Mon, 5 Mar 2012 09:39:43 +0100 (CET) Received: from mail.invitel.hu (mail.invitel.hu [213.163.59.4]) by a.relay.invitel.net (Invitel Core SMTP Transmitter) with ESMTP id AAE0711A079; Mon, 5 Mar 2012 09:39:42 +0100 (CET) Received: from [192.168.1.6] ([91.82.173.52]) by mail.invitel.hu (Invitel Messaging Server) with ESMTPA id <0M0E00CV3LE69310@invitel.hu>; Mon, 05 Mar 2012 09:39:42 +0100 (CET) Date: Mon, 05 Mar 2012 09:39:39 +0100 From: Heiko Schocher In-reply-to: <201203050713.51779.marex@denx.de> To: Marek Vasut Message-id: <4F547BCB.1010201@denx.de> Organization: DENX Software Engineering MIME-version: 1.0 References: <201203050713.51779.marex@denx.de> User-Agent: Thunderbird 2.0.0.6 (X11/20070801) Cc: u-boot@lists.denx.de Subject: Re: [U-Boot] cam_enc_4xx build failure X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list Reply-To: hs@denx.de 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 Hello Marek, Marek Vasut wrote: > Dear Heiko Schocher, > > cam_enc_4xx does not build with ELDK4.2 . Can you please come up with a patch? Hups, tested only with ELDK-5.1 compile/works fine! > Thanks in advance! > > Copyright (C) 2007 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > Configuring for cam_enc_4xx board... > cam_enc_4xx.c: In function 'menu_handle': > cam_enc_4xx.c:609: warning: dereferencing type-punned pointer will break strict- > aliasing rules fixed > arm-linux-ld: u-boot-spl: Not enough room for program headers, try linking with > -N Hmm.. I need here this patch (for ELDK-4.2 only): compiles/works with ELDK-4.2 compiles/works with ELDK-5.1 ... a) better ideas for a fix? b) If patch is OK, should I send for this issue in a seperate patch? > arm-linux-ld: final link failed: Bad value > make[1]: *** [/opt/work/jenkins/jobs/U- > Boot/workspace/workspace/compiler/eldk4.2/device/arm___cam_enc_4xx/spl/u-boot- > spl] Error 1 > make: *** [spl/u-boot-spl.bin] Error 2 > make: *** Waiting for unfinished jobs.... > cmd_pxe.c: In function 'do_pxe_get': > cmd_pxe.c:334: warning: dereferencing type-punned pointer will break strict- > aliasing rules > cmd_pxe.c: In function 'get_relfile_envaddr': > cmd_pxe.c:374: warning: dereferencing type-punned pointer will break strict- > aliasing rules > arm-linux-size: './u-boot': No such file added Jason Hobbs to Cc. Jason? Could you fix this? Removed cmd_pxe support for the cam_enc_4xx board, as it is not needed. Thanks! bye, Heiko diff --git a/config.mk b/config.mk index ddaa477..1aaf2a2 100644 --- a/config.mk +++ b/config.mk @@ -254,7 +254,7 @@ ifneq ($(CONFIG_SYS_TEXT_BASE),) LDFLAGS_u-boot += -Ttext $(CONFIG_SYS_TEXT_BASE) endif -LDFLAGS_u-boot-spl += -T $(obj)u-boot-spl.lds $(LDFLAGS_FINAL) +LDFLAGS_u-boot-spl += -N -T $(obj)u-boot-spl.lds $(LDFLAGS_FINAL) ifneq ($(CONFIG_SPL_TEXT_BASE),) LDFLAGS_u-boot-spl += -Ttext $(CONFIG_SPL_TEXT_BASE) endif