History log of /freebsd-10-stable/usr.bin/ldd/ldd.1
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 199871 28-Nov-2009 danger

- correctly render the provided example

PR: docs/140962
Submitted by: mharo


# 181136 01-Aug-2008 jhb

Tweak the support for using ldd on 32-bit objects a bit further.
Specifically, build a 32-bit /usr/bin/ldd32 on amd64 which handles 32-bit
objects. Since it is a 32-bit binary, it can fork a child process which
can dlopen() a 32-bit shared library. The current 32-bit support in ldd
can't do this because it does the dlopen() from a 64-bit process. In order
to preserve an intuitive interface for users, the ldd binary automatically
execs /usr/bin/ldd32 for 32-bit objects. The end result is that ldd on
amd64 now transparently handles 32-bit shared libraries in addition to
32-bit binaries.

Submitted by: ps (indirectly)


# 180236 03-Jul-2008 edwin

On 64 bit architectures, you can run 32 bit executables and the rtld can trace them, but ldd(1) doesn't know yet how to detect them:

[/] root@ed-exigent>ldd `which httpd`
ldd: /usr/local/sbin/httpd: can't read program header
ldd: /usr/local/sbin/httpd: not a dynamic executable

But...

[/] root@ed-exigent>LD_32_TRACE_LOADED_OBJECTS==1 `which httpd`
libm.so.4 => /lib32//libm.so.4 (0x280c8000)
libaprutil-1.so.2 => /usr/local/lib/libaprutil-1.so.2 (0x280de000)
libexpat.so.6 => /usr/local/lib/libexpat.so.6 (0x280f2000)
libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x28110000)
libapr-1.so.2 => /usr/local/lib/libapr-1.so.2 (0x281fd000)
libcrypt.so.3 => /lib32//libcrypt.so.3 (0x2821d000)
libpthread.so.2 => not found (0x0)
libc.so.6 => /lib32//libc.so.6 (0x28235000)
libpthread.so.2 => /usr/lib32/libpthread.so.2 (0x2830d000)

Added support in ldd(1) for the LD_32_xxx environment variables if
the architecture of the machine is >32 bits. If we ever go to 128
bit architectures this excercise will have to be repeated but thanks
to earlier commits today it will be relative simple.

PR: bin/124906
Submitted by: edwin
Approved by: bde (mentor)
MFC after: 1 week


# 179013 15-May-2008 bms

Typo


# 179011 15-May-2008 bms

Add an example of how to use ldd -f.


# 169499 12-May-2007 pav

Expand documentation of -f option

PR: docs/66265
Submitted by: Michel Lavondes <fox@vader.aacc.cc.md.us>
MFC after: 1 week


# 108470 30-Dec-2002 schweikh

Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/
Add FreeBSD Id tag where missing.


# 95124 20-Apr-2002 charnier

Use `The .Nm utility'


# 92342 15-Mar-2002 ru

mdoc(7) police: kill hard sentence breaks.


# 90755 17-Feb-2002 obrien

Add support such that if LD_TRACE_LOADED_OBJECTS_ALL is defined to a
non-empty string in the environment; we indicate which objects caused
each object to be loaded.

PR: 30908
Submitted-by: Mike Meyer <mwm@mired.org>


# 90174 04-Feb-2002 sobomax

(forced)

Previous commit (ldd on shlibs) is a subject of:

MFC after: 2 weeks


# 90172 04-Feb-2002 sobomax

Allow ldd(1) be used on shared libraries in addition to executables.


# 79535 10-Jul-2001 ru

mdoc(7) police: removed HISTORY info from the .Os call.


# 68963 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


# 60327 10-May-2000 phantom

Corractly use .Nm and .An/.Aq macros. Replace FreeBSD with .Fx macro
e.


# 58720 28-Mar-2000 sheldonh

Cross-reference ldd(1) in rtld(1) and vice versa.


# 58372 20-Mar-2000 sheldonh

Revert the part of rev 1.5 that spammed rev 1.4; rev 1.4 correctly
removed an erroneous cross-reference to ld.so(1), which doesn't
exist in FreeBSD.

PR: 17468
Submitted by: Randall Hopper <aa8vb@ipass.net>


# 57670 01-Mar-2000 sheldonh

Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.


# 50534 28-Aug-1999 mpp

Add $FreeBSD$ lines to man pages that are missing them to make it
easier for translation teams.

PR: docs/13418
Submitted by: Alexey Zelkin <phantom@cris.net>


# 31989 25-Dec-1997 hoek

Use consistent spelling,
writeable -> writable (recall prior debate over this? :-)
initialise -> initialize
recognise -> recognize

Merry Christmas! :)


# 28935 30-Aug-1997 jmg

fix a few spelling changes

Submitted by: Josh Gilliam

Closes PR's: 4429, 4431-4438

PS: He has agreed to submit all contrib fixes back to the original author.


# 20050 30-Nov-1996 bde

Made the synopsis in the man page conform to the style guide.

Made the usage message conform to the style guide.

Don't use the implementation variable `__progname'.


# 18600 01-Oct-1996 peter

Incorporate John Polstra's sods.c display of the details about the
dynamic linking information in the executable. It's quite extensive.
It's connected to ldd's (new) -v option.


# 18598 30-Sep-1996 peter

Support for specifying printf-like output specs to control the ldd output
as present in the new rtld version.

Obtained from: NetBSD
Reviewed by: nate, jdp


# 5205 23-Dec-1994 nate

Updated to recent version of Paul K.'s shlib code. This code has better
warning handling and allows for link-time warnings with a modified
version of gas.

Note: Not all of the newer bits were updated such as some of the non-x86
machine-dependant code is relevant to FreeBSD right now.

Obtained from: NetBSD


# 1755 17-Jun-1994 jkh

Remove reference to the ld.so man page - ain't no such animal.
Reported by John Lind.


# 1153 13-Feb-1994 jkh

This is Paul K's latest set of ld changes. A commit was necessary at this
late stage due to the fact that link.h was copyright Sun Microsystems.

This version of ld sync's us up with NetBSD's ld and supports compatablily
with NetBSD's -[zZ] flags (which we had reversed). Compiling with this
new ld will give you RRS warnings for libraries which do not contain .type
infomation - these wsarnings are harmless and will go away as soon as you
recompile your libraries (cd /usr/src; make libraries).


# 1146 11-Feb-1994 nate

Changed NetBSD -> FreeBSD


# 696 03-Nov-1993 paul

Imported NetBSD's ld for shared libs.