bms
b1f1ca6b46
Typo
2008-05-15 10:51:30 +00:00
bms
d28bbf5fae
Add an example of how to use ldd -f.
2008-05-15 10:43:11 +00:00
pav
f50136d51b
Expand documentation of -f option
...
PR: docs/66265
Submitted by: Michel Lavondes <fox@vader.aacc.cc.md.us>
MFC after: 1 week
2007-05-12 12:23:40 +00:00
dwmalone
f6480c153b
The type of some aout header types changed to uint_32, so now we need
...
to cast to long before printing. While I'm here, raise WARNS to 6.
2004-06-29 21:13:15 +00:00
dwmalone
0bde518078
Fix a few WARNS:
...
1) Include string.h for strcpy.
2) Don't make duplicate declaration of dump_file, we now include extern.h.
3) Help out with some constness.
4) Cast to slightly better types in some comparisons.
2004-02-15 22:01:23 +00:00
schweikh
86f7487fb6
Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/
...
Add FreeBSD Id tag where missing.
2002-12-30 21:18:15 +00:00
sobomax
62ac3ba58f
Fix a problem with RTLD_TRACE flag to dlopen(3), which sometimes can return
...
even if there was no error occured (when trying to dlopen(3) object that
already linked into executable which does dlopen(3) call). This is more
proper fix for `ldd /usr/lib/libc.so' problem, because the new behaviour
conforms to documentation.
Remove workaround from ldd.c (rev.1.32).
PR: 35099
Submitted by: Nathan Hawkins <utsl@quic.net>
MFC after: 1 week
2002-10-19 10:18:29 +00:00
peter
a51c9b6627
Initiate deorbit burn for the i386-only a.out related support. Moves are
...
under way to move the remnants of the a.out toolchain to ports. As the
comment in src/Makefile said, this stuff is deprecated and one should not
expect this to remain beyond 4.0-REL. It has already lasted WAY beyond
that.
Notable exceptions:
gcc - I have not touched the a.out generation stuff there.
ldd/ldconfig - still have some code to interface with a.out rtld.
old as/ld/etc - I have not removed these yet, pending their move to ports.
some includes - necessary for ldd/ldconfig for now.
Tested on: i386 (extensively), alpha
2002-09-17 01:49:00 +00:00
knu
66c935d52f
Fix a tiny bug in shlib support of ldd(1); if dlopen(lib, RTLD_TRACE)
...
returns, exit gracefully with 0.
This fixes the behavior you see when you specify libc.so. It occurs
because ldd(1) itself is linked with libc.so.
$ ldd /usr/lib/libc.so
/usr/lib/libc.so:
ldd: /usr/lib/libc.so: (null)
/usr/lib/libc.so: exit status 1
Reviewed by: silence of audit@
2002-05-17 17:06:56 +00:00
markm
2f918abe2e
Warns; ANSIfy, constify and move declarations into a common header.
2002-04-28 12:55:35 +00:00
markm
432896d29d
Remove GCC-specific flags.
2002-04-28 12:54:24 +00:00
mike
70fe01a98d
Include <arpa/inet.h> for prototype of ntohl() used in the N_BADMAG()
...
macro.
2002-04-20 20:09:29 +00:00
charnier
ad8a79e6a5
Use `The .Nm utility'
2002-04-20 12:18:28 +00:00
imp
74d826c7a6
remove __P
2002-03-22 01:22:50 +00:00
ru
fd9725909a
mdoc(7) police: kill hard sentence breaks.
2002-03-15 15:31:54 +00:00
obrien
77f77a885c
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>
2002-02-17 07:04:32 +00:00
sobomax
d491ac2a48
Inspect ELF header and reject any non-FreeBSD shared objects.
...
MFC after: 2 weeks
2002-02-08 04:08:57 +00:00
sobomax
0a68f500fa
Allow ldd(1) be used on shared libraries in addition to executables.
2002-02-04 10:33:48 +00:00
sobomax
c61b7216e4
GC meaningless assignment.
...
MFC after: 3 days
2002-02-04 10:23:23 +00:00
dillon
9547eabc59
Fix long format mismatch with int arg
2001-10-29 00:32:58 +00:00
ru
36f138439b
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 14:16:33 +00:00
brian
8636b161b3
Fix the type of the NULL arg to execl()
...
Idea from: Theo de Raadt <deraadt@openbsd.org>
2001-07-09 09:24:06 +00:00
obrien
538e761e02
* include/elf.h has been repo copied to include/elf-hints.h, and it no
...
longer includes machine/elf.h.
* consumers of elf.h now use the minimalist elf header possible.
This change is motivated by Binutils 2.11.0 and too much clashing over
our base elf headers and the Binutils elf headers.
2001-05-02 23:56:21 +00:00
ache
f15d921e9e
Fix lseek args order (PR 23549)
...
Catch and report lseek errors too
While reading header don't attempt to continue reading
if some IO operation fails
PR: 23549
2000-12-15 13:20:43 +00:00
charnier
2363c20c22
Add rcsid. Remove unused #include. Remove error() definition and replace
...
with warn().
2000-12-10 20:54:13 +00:00
ru
0d1334ca0c
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 19:21:22 +00:00
imp
3c95f9ccde
getopt and friends are declared in <unistd.h>
...
getopt returns -1 not EOF.
2000-09-04 06:09:54 +00:00
phantom
3427f4b1fa
Corractly use .Nm and .An/.Aq macros. Replace FreeBSD with .Fx macro
...
e.
2000-05-10 15:46:27 +00:00
sheldonh
2990034f0b
Cross-reference ldd(1) in rtld(1) and vice versa.
2000-03-28 09:01:04 +00:00
sheldonh
1055c7c0e9
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>
2000-03-20 13:30:11 +00:00
sheldonh
49c4458c80
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.
2000-03-01 12:20:22 +00:00
mpp
59a037c52b
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>
1999-08-28 23:23:38 +00:00
peter
3b842d34e8
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
dfr
2c574d9124
Make ldd work on alpha.
1998-09-16 09:31:48 +00:00
jdp
b192d17118
Fix a bug which caused ldd to execute scripts listed on its command
...
line, instead of skipping them.
Also make a few minor cleanups.
PR: bin/7783
1998-08-30 18:30:59 +00:00
peter
8eddb2ad66
Add -DFREEBSD_AOUT to CFLAGS to ensure we get the correct definitions
...
from <link.h>
1998-06-12 14:11:15 +00:00
peter
11088cd559
ldd standalone build, after repository copy.
1998-06-01 13:55:12 +00:00
dfr
f28fdede6f
Add ELF support.
1998-05-01 08:40:11 +00:00
hoek
100ffb8b0a
Use consistent spelling,
...
writeable -> writable (recall prior debate over this? :-)
initialise -> initialize
recognise -> recognize
Merry Christmas! :)
1997-12-25 09:36:42 +00:00
jdp
81c1440f4f
In the "ldd -v" output, display the N_AUX information for each
...
symbol. It indicates whether the symbol refers to a function or a
data object.
1997-11-28 19:34:27 +00:00
jdp
24ac227fe1
Touch up the code that implements "ldd -v".
...
Bring the style of sods.c into better conformance. Add code to
print the contents of each datum being relocated. Correct the logic
that distinguishes between programs, shared libraries, and object
files. Make the entire program "-Wall" clean.
1997-09-02 21:54:39 +00:00
jmg
416e9a71f9
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.
1997-08-30 12:22:49 +00:00
peter
245ba20d12
Revert $FreeBSD$ to $Id$
1997-02-22 15:48:31 +00:00
jkh
808a36ef65
Make the long-awaited change from $Id$ to $FreeBSD$
...
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
jdp
cda6305fe1
Set LD_TRACE_LOADED_OBJECTS to "1" instead of to "". The dynamic linker
...
now treats empty "LD_*" environment variables as if they were unset, per
the standard SVR4 conventions.
1997-01-12 00:10:57 +00:00
jdp
511c6ad118
For "ldd -v", print shared object dependencies that were specified as
...
pathnames (rather than as "-lfoo") correctly.
Closes PR bin/2404.
1997-01-10 02:51:00 +00:00
bde
8c92e07907
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'.
1996-11-30 16:12:46 +00:00
peter
ab076d3a60
make the Usage string match reality
...
Submitted by: faried nawaz <fn@uidaho.edu>, PR#2075
1996-11-22 13:58:03 +00:00
peter
8a114aa2ad
oops, uninitialised variable.. -v mode depended on stack contents.
...
Submitted by: Masafumi NAKANE <max@wide.ad.jp>, PR#1920
1996-10-29 18:45:20 +00:00
peter
519e9b0911
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.
1996-10-01 02:16:16 +00:00