From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 74002 invoked by alias); 4 Jan 2017 20:19:15 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Received: (qmail 73926 invoked by uid 89); 4 Jan 2017 20:19:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.4 required=5.0 tests=AWL,BAYES_40,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=H*r:sk:us-smtp, H*r:sk:us-mta-, HX-HELO:sk:us-smtp, Hx-spam-relays-external:sk:us-mta- X-HELO: us-smtp-delivery-128.mimecast.com Received: from us-smtp-delivery-128.mimecast.com (HELO us-smtp-delivery-128.mimecast.com) (216.205.24.128) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 04 Jan 2017 20:19:04 +0000 Received: from ex-hc2.corp.adtran.com (ex-hc3.adtran.com [76.164.174.83]) (Using TLS) by us-smtp-1.mimecast.com with ESMTP id us-mta-119-5dFfa4BgM5meJXT3lb0-jQ-1; Wed, 04 Jan 2017 15:19:01 -0500 Received: from ex-mb1.corp.adtran.com ([fe80::51a3:972d:5f16:9952]) by ex-hc2.corp.adtran.com ([fe80::a019:449b:3f62:28e5%10]) with mapi id 14.03.0319.002; Wed, 4 Jan 2017 14:19:00 -0600 From: ANDY KENNEDY To: 'Vered Zvi' , "crossgcc@sourceware.org" Subject: RE: ldd for busybox compiled for arm Date: Wed, 04 Jan 2017 20:19:00 -0000 Message-ID: References: <1EFFBDE6584C794F8A0ADF2CAC8D60E09F909C3C@eltidex2.elta.co.il> In-Reply-To: <1EFFBDE6584C794F8A0ADF2CAC8D60E09F909C3C@eltidex2.elta.co.il> MIME-Version: 1.0 X-MC-Unique: 5dFfa4BgM5meJXT3lb0-jQ-1 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2017-01/txt/msg00001.txt.bz2 > -----Original Message----- > From: crossgcc-owner@sourceware.org [mailto:crossgcc-owner@sourceware.org= ] On Behalf Of Vered Zvi > Sent: Tuesday, January 03, 2017 3:49 PM > To: crossgcc@sourceware.org > Subject: ldd for busybox compiled for arm >=20 >=20 > Hello, Hi Vered! >=20 > Using crosstool-ng 1.22.0 I created a toolchain for: arm-cortex_a15-linu= x-gnueabi > The host is Centos 7.2.1511 (64) >=20 > Using this toolchain I compiled busybox. > make ARCH=3Darm CROSS_COMPILE=3D../../../../toolchain/crosstool/release/b= in/arm-cortex_a15-linux- > gnueabihf- defconfig > make ARCH=3Darm CROSS_COMPILE=3D../../../../toolchain/crosstool/release/b= in/arm-cortex_a15-linux- > gnueabihf- After doing this, you should have ended up with two files in the local directory: busybox busybox_unstripped. What does "file" return to you for these two files. >=20 > Is it possible to use ldd from this toolchain to find out the dependencie= s for /bin/sh , /sbin/init > ? >=20 > Strange: both /bin/sh, /sbin/init run under x86. I would hope that to be the case. /bin/sh on the HOST should not have been altered by the above steps. Now, if you mean that you attempted to run these two commands on the target, this is different. On target, you may have to run 'busybox install' to correctly configure the system with the appropriate links. The file /bin/busybox on TARGET should be your NEW busybox prior to executing the install.=20=20 If you cannot execute your freshly built busybox on the system (busybox without options will display the built-ins applets for busybox), you may have linking issues. The trick there is that you would many of the libs that come with the toolchain before this will work. If you are looking to build a system without libraries, I suggest that you use BuildRoot with an internal toolchain to build your busybox statically. > How it is possible ? > They were compiled for ARM. >=20 > Thank you, > Z.V HTH! Andy