tldr/pages/linux/ldd.md

26 lines
631 B
Markdown
Raw Normal View History

2017-08-13 13:21:01 +01:00
# ldd
2022-10-15 14:12:54 +01:00
> Display shared library dependencies of a binary.
> Do not use on an untrusted binary, use objdump for that instead.
> More information: <https://manned.org/ldd>.
2017-08-13 13:21:01 +01:00
- Display shared library dependencies of a binary:
`ldd {{path/to/binary}}`
2022-10-15 14:12:54 +01:00
- Display all information about dependencies:
`ldd --verbose {{path/to/binary}}`
2017-08-13 13:21:01 +01:00
- Display unused direct dependencies:
2022-10-15 14:12:54 +01:00
`ldd --unused {{path/to/binary}}`
- Report missing data objects and perform data relocations:
`ldd --data-relocs {{path/to/binary}}`
- Report missing data objects and functions, and perform relocations for both:
`ldd --function-relocs {{path/to/binary}}`