Query: ldd
OS: freebsd
Section: 1
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
LDD(1) BSD General Commands Manual LDD(1)NAMEldd -- list dynamic object dependenciesSYNOPSISldd [-a] [-v] [-f format] program ...DESCRIPTIONThe 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 conversion characters. The -a option displays the list of all objects that are needed by each loaded object. This option does not work with a.out(5) binaries. The -v option displays a verbose listing of the dynamic linking headers encoded in the executable. See the source code and include files for the definitive meaning of all the fields.EXAMPLESThe 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 direc- tory, which link against libc.so.6: find . -type f | xargs -n1 file -F ' ' | grep ELF | cut -f1 -d' ' | xargs ldd -f '%A %o ' | grep libc.so.6SEE ALSOld(1), nm(1), rtld(1)HISTORYA ldd utility first appeared in SunOS 4.0, it appeared in its current form in FreeBSD 1.1. The -v support is based on code written by John Polstra <jdp@polstra.com>BSDMay 15, 2008 BSD
Related Man Pages |
---|
ldd(1) - suse |
ldd(1) - netbsd |
ldd(1) - mojave |
ldd(1) - x11r4 |
ldd(1) - ultrix |
Similar Topics in the Unix Linux Community |
---|
grep and xargs |
AIX - find also in symbolic link |
Redirection with xargs. |
Looping grep and xargs |
Xargs -0 not working |