1 .\" $FreeBSD: head/usr.bin/ldd/ldd.1 199871 2009-11-28 11:05:22Z danger $
8 .Nd list dynamic object dependencies
18 utility displays all shared objects that are needed to run the given program or
19 to load the given shared object.
24 dependencies that are the result of needed shared objects which themselves
25 depend on yet other shared objects.
30 The argument is a format string passed to
32 and allows customization of
35 If one is given, it sets
36 .Ev LD_TRACE_LOADED_OBJECTS_FMT1 .
37 If two are given, they set
38 .Ev LD_TRACE_LOADED_OBJECTS_FMT1
40 .Ev LD_TRACE_LOADED_OBJECTS_FMT2 ,
44 for details, including a list of recognized conversion characters.
48 option displays the list of all objects that are needed by each loaded
50 This option does not work with
56 option displays a verbose listing of the dynamic linking headers
57 encoded in the executable.
58 See the source code and include
59 files for the definitive meaning of all the fields.
61 The following is an example of a shell pipeline which uses the
64 It will print a report of all ELF binaries in the current directory,
65 which link against libc.so.6:
66 .Dl "find . -type f | xargs -n1 file -F ' ' | grep ELF | cut -f1 -d' ' | xargs ldd -f '%A %o\en' | grep libc.so.6"
74 utility first appeared in SunOS 4.0, it appeared in its current form in
79 support is based on code written by
80 .An John Polstra Aq Mt jdp@polstra.com .