7 .Nd list dynamic object dependencies
11 .Op Fl f Ar format Op Fl f Ar format
16 utility displays all shared objects that are needed to run the given program or
17 to load the given shared object.
22 dependencies that are the result of needed shared objects which themselves
23 depend on yet other shared objects.
28 The argument is a format string passed to
30 and allows customization of
33 If one is given, it sets
34 .Ev LD_TRACE_LOADED_OBJECTS_FMT1 .
35 If two are given, they set
36 .Ev LD_TRACE_LOADED_OBJECTS_FMT1
38 .Ev LD_TRACE_LOADED_OBJECTS_FMT2 ,
42 for details, including a list of recognized conversion characters.
46 option displays the list of all objects that are needed by each loaded
48 .Sh IMPLEMENTATION NOTES
50 lists the dependencies of an executable by setting
52 environment variables and running the executable in a child process.
53 If the executable is corrupt or invalid,
55 may therefore fail without providing any diagnostic error messages.
57 The following is an example of a shell pipeline which uses the
60 It will print a report of all ELF binaries in the current directory,
61 which link against the old libc.so.6:
62 .Dl "find . -type f | xargs file -F ' ' | grep 'ELF.*dynamically' | cut -f1 -d' ' | xargs ldd -f '%A %o\en' | grep -F libc.so.6"
71 utility first appeared in SunOS 4.0, it appeared in its current form in