From b4efca6becdd76cb569bedab4b273f339c26ca85 Mon Sep 17 00:00:00 2001 From: Jacobus Burger Date: Sat, 15 Oct 2022 05:12:54 -0800 Subject: [PATCH] ldd: add more info (#9011) --- pages/linux/ldd.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/pages/linux/ldd.md b/pages/linux/ldd.md index 9c2ce9bb7..72cd6eb07 100644 --- a/pages/linux/ldd.md +++ b/pages/linux/ldd.md @@ -1,12 +1,25 @@ # ldd -> Display shared library dependencies. +> Display shared library dependencies of a binary. +> Do not use on an untrusted binary, use objdump for that instead. > More information: . - Display shared library dependencies of a binary: `ldd {{path/to/binary}}` +- Display all information about dependencies: + +`ldd --verbose {{path/to/binary}}` + - Display unused direct dependencies: -`ldd -u {{path/to/binary}}` +`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}}`