DragonFly On-Line Manual Pages
LDD(1) DragonFly General Commands Manual LDD(1)
ldd -- list dynamic object dependencies
ldd [-a] [-v] [-f format] program ...
The ldd utility displays all shared objects that are needed to run the
given program or to load the given shared object. Contrary to nm(1), the
list includes ``indirect'' dependencies that are the result of needed
shared objects which themselves depend on yet other shared objects.
Zero, one or two -f options may be given. The argument is a format
string passed to rtld(1) and allows customization of ldd's output. If
one is given, it sets LD_TRACE_LOADED_OBJECTS_FMT1. If two are given,
they set LD_TRACE_LOADED_OBJECTS_FMT1 and LD_TRACE_LOADED_OBJECTS_FMT2,
respectively. See rtld(1) for details, including a list of recognized
The -a option displays the list of all objects that are needed by each
The -v option is left for compatibility and has no effect.
The following is an example of a shell pipeline which uses the -f option.
It will print a report of all ELF binaries in the current directory,
which link against libc.so.6:
find . -type f | xargs -n1 file -F ' ' | grep ELF | cut -f1 -d' ' |
xargs ldd -f '%A %o\n' | grep libc.so.6
ld(1), nm(1), rtld(1)
A ldd utility first appeared in SunOS 4.0, it appeared in its current
form in FreeBSD 1.1.
DragonFly 5.3 February 28, 2016 DragonFly 5.3