1LDD(1)                     Linux Programmer's Manual                    LDD(1)
2
3
4

NAME

6       ldd - print shared library dependencies
7

SYNOPSIS

9       ldd [OPTION]... FILE...
10

DESCRIPTION

12       ldd  prints  the  shared  libraries  required by each program or shared
13       library specified on the command line.
14
15   Security
16       In the usual  case,  ldd  invokes  the  standard  dynamic  linker  (see
17       ld.so(8))  with the LD_TRACE_LOADED_OBJECTS environment variable set to
18       1, which causes the linker to display  the  library  dependencies.   Be
19       aware,  however,  that  in some circumstances, some versions of ldd may
20       attempt to obtain the dependency information by directly executing  the
21       program.  Thus, you should never employ ldd on an untrusted executable,
22       since this may result in the execution  of  arbitrary  code.   A  safer
23       alternative when dealing with untrusted executables is:
24
25           $ objdump -p /path/to/program | grep NEEDED
26

OPTIONS

28       --version
29              Print the version number of ldd.
30
31       -v --verbose
32              Print all information, including, for example, symbol versioning
33              information.
34
35       -u --unused
36              Print unused direct dependencies.  (Since glibc 2.3.4.)
37
38       -d --data-relocs
39              Perform relocations and report any missing objects (ELF only).
40
41       -r --function-relocs
42              Perform relocations for both data  objects  and  functions,  and
43              report any missing objects or functions (ELF only).
44
45       --help Usage information.
46

NOTES

48       The  standard  version  of  ldd  comes with glibc2.  Libc5 came with an
49       older version, still present on some systems.  The long options are not
50       supported  by the libc5 version.  On the other hand, the glibc2 version
51       does not support -V and only has the equivalent --version.
52
53       The libc5 version of this program will use the name of a library  given
54       on the command line as-is when it contains a '/'; otherwise it searches
55       for the library in the standard locations.   To  run  it  on  a  shared
56       library in the current directory, prefix the name with "./".
57

BUGS

59       ldd does not work on a.out shared libraries.
60
61       ldd  does  not  work  with some extremely old a.out programs which were
62       built before ldd support was added to the compiler  releases.   If  you
63       use  ldd on one of these programs, the program will attempt to run with
64       argc = 0 and the results will be unpredictable.
65

SEE ALSO

67       ld.so(8), ldconfig(8)
68

COLOPHON

70       This page is part of release 3.53 of the Linux  man-pages  project.   A
71       description  of  the project, and information about reporting bugs, can
72       be found at http://www.kernel.org/doc/man-pages/.
73
74
75
76                                  2012-07-16                            LDD(1)
Impressum