From mboxrd@z Thu Jan 1 00:00:00 1970 From: Baruch Siach Date: Tue, 9 Jul 2013 20:43:06 +0300 Subject: [Buildroot] where is 'ldd'? In-Reply-To: References: <20130708135640.GA7070@zuhnb712> <51DAC94D.2030706@gmail.com> <20130708142743.GB11258@zuhnb712> <20130709124030.530d3a3e@skate> Message-ID: <20130709174306.GT5098@tarshish> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hi Thomas, On Tue, Jul 09, 2013 at 07:39:49PM +0200, Thomas De Schampheleire wrote: > Op 9-jul.-2013 12:40 schreef "Thomas Petazzoni" < > thomas.petazzoni at free-electrons.com> het volgende: > > > > Dear Thomas De Schampheleire, > > > > On Mon, 8 Jul 2013 18:49:40 +0200, Thomas De Schampheleire wrote: > > > > > You really don't need a special ldd. > > > ldd is just a script. In its most basic usage (ldd ), it > just runs: > > > # LD_TRACE_LOADED_OBJECTS=1 > > > > > > For example on busybox: > > > # LD_TRACE_LOADED_OBJECTS=1 /bin/busybox > > > linux-vdso32.so.1 => (0x00100000) > > > libc.so.6 => /lib/libc.so.6 (0x0fe70000) > > > /lib/ld.so.1 (0x48000000 > > > > > > So for sporadic usage, an ldd script isn't even needed. > > > > Right, but does this work with the uClibc dynamic loader? Anyway, if > > those features don't exist with the uClibc dynamic loader, then > > implementing ldd is simply impossible. > > I haven't tried this on uClibc yet. Anyone that has such a target at hand > willing to give it a shot? Trying on uClibc (0.9.33.2) xtensa target I see: # LD_TRACE_LOADED_OBJECTS=1 /bin/busybox libc.so.0 => /lib/libc.so.0 (0x20008000) ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x20000000) baruch -- http://baruch.siach.name/blog/ ~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo------------{= - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -