[Buildroot] where is 'ldd'?
Baruch Siach
baruch at tkos.co.il
Tue Jul 9 17:43:06 UTC 2013
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 <executable>), it
> just runs:
> > > # LD_TRACE_LOADED_OBJECTS=1 <executable>
> > >
> > > 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 -
More information about the buildroot
mailing list