blob: d358f0b788f4db1c580d2fdd957452f8103a7745 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
## Name
ldd - list dynamic dependencies
## Synopsis
```**sh
$ ldd [-r] [-f] <path>
```
## Description
`ldd` prints all dependency libraries of an ELF object.
## Options
* `-f`, `--force-without-valid-interpreter`: Force library resolving on ELF
object without a valid interpreter
* `-r`, `--max-recursion`: Max library resolving recursion
## Arguments
* `path`: Path to ELF object
## Security
In contrast to other OS implementations, the `ldd` binary is completely safe for
usage on untrusted binaries - we only use the `LibELF` code for doing library
resolving, and the actual binary interpreter (when specified) is never called to
decode the dependency information.
## Examples
```sh
# List all dependency libraries for libc.so
$ ldd -f /usr/lib/libc.so
# List all dependency libraries for /bin/id
$ ldd /bin/id
# List all dependency libraries for /bin/WindowServer
$ ldd /bin/WindowServer
```
|