mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 00:54:57 +00:00

This utility lets a user to figure out what are the dependency libraries for an ELF dynamic object, whether it's a dynamically loaded executable or dynamically loaded library.
914 B
914 B
Name
ldd - list dynamic dependencies
Synopsis
$ 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
# 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