GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  LDD (1)

NAME

ldd - list dynamic object dependencies

CONTENTS

Synopsis
Description
Examples
See Also
History

SYNOPSIS

ldd [-a] [-v] [-f format] program ...

DESCRIPTION

The ldd utility displays all shared objects that are needed to run the given program or to load the given shared object. Contrary to nm(1), the list includes "indirect" dependencies that are the result of needed shared objects which themselves depend on yet other shared objects.

Zero, one or two -f options may be given. The argument is a format string passed to rtld(1) and allows customization of ’s output. If one is given, it sets LD_TRACE_LOADED_OBJECTS_FMT1. If two are given, they set LD_TRACE_LOADED_OBJECTS_FMT1 and LD_TRACE_LOADED_OBJECTS_FMT2, respectively. See rtld(1) for details, including a list of recognized conversion characters.

The -a option displays the list of all objects that are needed by each loaded object. This option does not work with a.out(5) binaries.

The -v option displays a verbose listing of the dynamic linking headers encoded in the executable. See the source code and include files for the definitive meaning of all the fields.

EXAMPLES

The following is an example of a shell pipeline which uses the -f option. It will print a report of all ELF binaries in the current directory, which link against libc.so.6:

    find . -type f | xargs -n1 file -F ’ ’ | grep ELF | cut -f1 -d’ ’ | xargs ldd -f ’%A %o\n’ | grep libc.so.6

SEE ALSO

ld(1), nm(1), rtld(1)

HISTORY

A ldd utility first appeared in SunOS 4.0, it appeared in its current form in
.Fx 1.1 .

The -v support is based on code written by
.An John Polstra Aq jdp@polstra.com

Search for    or go to Top of page |  Section 1 |  Main Index


Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.