ldd :
LD_TRACE_LOADED_OBJECTS=1 /lib/ld*.so $@
root@slitaz:~# which ldd
/usr/bin/ldd
root@slitaz:~# cat /usr/bin/ldd
#!/bin/sh
#
# Tiny ldd fake.
# (c) 2010 SliTaz GNU/Linux.
#
echo ""
LD_TRACE_LOADED_OBJECTS=1 /lib/ld*.so $@
echo ""
root@slitaz:~# tazpkg search-pkgname ldd
Search result for file : ldd
================================================================================
asterisk
catalyst
glibc-dev
slitaz-base-files
zsh
================================================================================
5 pkg(s) found with file : ldd
root@slitaz:~# tazpkg list-files slitaz-base-files | grep ldd
/usr/bin/ldd
root@slitaz:~#
root@slitaz:~# ldd /bin/cpio
linux-gate.so.1 => (0xffffe000)
librt.so.1 => /lib/librt.so.1 (0xb8022000)
libc.so.6 => /lib/libc.so.6 (0xb7ebc000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7ea3000)
/lib/ld-linux.so.2 => /lib/ld-2.10.1.so (0xb802c000)
root@slitaz:~# LD_TRACE_LOADED_OBJECTS=1 /lib/ld*.so $@ /bin/cpio
linux-gate.so.1 => (0xffffe000)
librt.so.1 => /lib/librt.so.1 (0xb7f55000)
libc.so.6 => /lib/libc.so.6 (0xb7def000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7dd6000)
/lib/ld-linux.so.2 => /lib/ld-2.10.1.so (0xb7f5f000)
root@slitaz:~# LD_TRACE_LOADED_OBJECTS=1 /lib/ld*.so $@
Usage: ld.so [OPTION]... EXECUTABLE-FILE [ARGS-FOR-PROGRAM...]
You have invoked `ld.so', the helper program for shared library executables.
This program usually lives in the file `/lib/ld.so', and special directives
in executable files using ELF shared libraries tell the system's program
loader to load the helper program from this file. This helper program loads
the shared libraries needed by the program executable, prepares the program
to run, and runs it. You may invoke this helper program directly from the
command line to load and run an ELF executable file; this is like executing
that file itself, but always uses this helper program from the file you
specified, instead of the helper program file specified in the executable
file you run. This is mostly of use for maintainers to test new versions
of this helper program; chances are you did not intend to run this program.
--list list all dependencies and how they are resolved
--verify verify that given object really is a dynamically linked
object we can handle
--library-path PATH use given PATH instead of content of the environment
variable LD_LIBRARY_PATH
--inhibit-rpath LIST ignore RUNPATH and RPATH information in object names
in LIST
--audit LIST use objects named in LIST as auditors
root@slitaz:~#