From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1XZJYJ-0006X6-Md for ptxdist@pengutronix.de; Wed, 01 Oct 2014 15:02:43 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1XZJYJ-0003GO-LI for ptxdist@pengutronix.de; Wed, 01 Oct 2014 15:02:43 +0200 Date: Wed, 1 Oct 2014 15:02:43 +0200 From: Michael Olbrich Message-ID: <20141001130243.GI16481@pengutronix.de> References: <20140507080758.GA17823@pengutronix.de> <1961773.jAu9WTbTPG@dabox> <20140926064621.GK25622@pengutronix.de> <3681672.LsfF9P6On8@dabox> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <3681672.LsfF9P6On8@dabox> Subject: Re: [ptxdist] [ANNOUNCE] OSELAS.Toolchain() 2013.12.2 released Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Mon, Sep 29, 2014 at 03:56:40PM +0200, Tim Sander wrote: > Am Freitag, 26. September 2014, 08:46:21 schrieb Michael Olbrich: > > On Wed, Sep 24, 2014 at 03:43:10PM +0200, Tim Sander wrote: > > > > I'm happy to announce that I've just released > > > > OSELAS.Toolchain-2013.12.2. > > > > > > > > This is a bugfix-only release. The relevant changes since 2013.12.1 are: > > > > - The toolchains can now be built with make 4.0 > > > > - Some toolchains did not optimize for the correct CPU. The code works > > > > but > > > > > > > > might be slower. This is fixed now. > > > > > > > > - All security relevant fixes mentioned in the glibc 2.19 changelog > > > > have > > > > > > > > been added for glibc 2.18 based toolchains. > > > > > > > > - All generated toolchain archives are now XZ comressed. > > > > > > While i have used this toolchain arm-v7a-linux-gnueabihf with an Xilinx > > > Zynx compiling nearly the same Project with a different Kernelconfig /DTB > > > for Altera SOC fails with this toolchain !?! The kernel boots but on > > > mounting the rootfs it fails to execute any binary? > > > > Is the dynamic linker (whatever /lib/ld-linux-armhf.so.3 points to) > > executable? Do you have a working system? Boot it and try to chroot into > > your new system. You get better error messages that way. > Ok i have now setup booted into the environment compiled with > OSELAS.Toolchain-2012.12.1/arm-cortexa9-linux-gnueabihf, mounted the other > system via nfs and tried to start any executable: Carefull: you need to chroot into the new root, otherwise you'll use the wrong linker (/lib/ld-linux-armhf.so.3). Did you do this? > /mnt/bin/busybox: line 1: syntax error: unexpected word (expecting ")") > > (thats with OSELAS.Toolchain-2013.12.2/arm-v7a-linux-gnueabihf on Altera SOC) > > I have taken a look at both busyboxes and have run them through "readelf -e" > (attached). The only difference which sprung to my eye was the hardfloat > support, which i don't understand as both toolchains should be hardfloat > toolchains. They are: The linker is /lib/ld-linux-armhf.so.3 for both. I'm not sure why the old binary is missing the hf flag. > Starting the binary with strace gives: > execve("mnt/bin/busybox", ["mnt/bin/busybox"], [/* 11 vars */]) = -1 ENOEXEC > (Exec format error) > write(2, "strace: exec: Exec format error\n", 32strace: exec: Exec format > error > ) = 32 > exit_group(1) = ? > +++ exited with 1 +++ > > So i have an execution error and the shell error seems to be the shell > fallback from the kernel. > > Another thing which caught my attention was the fact that: > objdump -d bin/busybox |grep UNDEFINED |wc -l > is 364 for the old and 13478 for the new toolchain. Try using objdump from the toolchain. Do you still get these results? Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de