summaryrefslogtreecommitdiffstats
path: root/usr.bin/ldd
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/schweikh2002-12-301-1/+1
| | | | Add FreeBSD Id tag where missing.
* Fix a problem with RTLD_TRACE flag to dlopen(3), which sometimes can returnsobomax2002-10-191-5/+4
| | | | | | | | | | | | | 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
* Initiate deorbit burn for the i386-only a.out related support. Moves arepeter2002-09-171-3/+1
| | | | | | | | | | | | | | | 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
* Fix a tiny bug in shlib support of ldd(1); if dlopen(lib, RTLD_TRACE)knu2002-05-171-4/+5
| | | | | | | | | | | | | | 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@
* Warns; ANSIfy, constify and move declarations into a common header.markm2002-04-283-39/+68
|
* Remove GCC-specific flags.markm2002-04-281-1/+0
|
* Include <arpa/inet.h> for prototype of ntohl() used in the N_BADMAG()mike2002-04-202-0/+2
| | | | macro.
* Use `The .Nm utility'charnier2002-04-201-1/+2
|
* remove __Pimp2002-03-221-1/+1
|
* mdoc(7) police: kill hard sentence breaks.ru2002-03-151-2/+4
|
* Add support such that if LD_TRACE_LOADED_OBJECTS_ALL is defined to aobrien2002-02-172-5/+19
| | | | | | | | 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>
* Inspect ELF header and reject any non-FreeBSD shared objects.sobomax2002-02-081-1/+7
| | | | MFC after: 2 weeks
* Allow ldd(1) be used on shared libraries in addition to executables.sobomax2002-02-042-3/+14
|
* GC meaningless assignment.sobomax2002-02-041-1/+1
| | | | MFC after: 3 days
* Fix long format mismatch with int argdillon2001-10-291-1/+1
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* Fix the type of the NULL arg to execl()brian2001-07-091-1/+1
| | | | Idea from: Theo de Raadt <deraadt@openbsd.org>
* * include/elf.h has been repo copied to include/elf-hints.h, and it noobrien2001-05-022-2/+2
| | | | | | | | 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.
* Fix lseek args order (PR 23549)ache2000-12-151-12/+15
| | | | | | | | Catch and report lseek errors too While reading header don't attempt to continue reading if some IO operation fails PR: 23549
* Add rcsid. Remove unused #include. Remove error() definition and replacecharnier2000-12-102-35/+26
| | | | with warn().
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-1/+1
|
* getopt and friends are declared in <unistd.h>imp2000-09-041-1/+1
| | | | getopt returns -1 not EOF.
* Corractly use .Nm and .An/.Aq macros. Replace FreeBSD with .Fx macrophantom2000-05-101-7/+10
| | | | e.
* Cross-reference ldd(1) in rtld(1) and vice versa.sheldonh2000-03-281-1/+2
|
* Revert the part of rev 1.5 that spammed rev 1.4; rev 1.4 correctlysheldonh2000-03-201-1/+0
| | | | | | | | removed an erroneous cross-reference to ld.so(1), which doesn't exist in FreeBSD. PR: 17468 Submitted by: Randall Hopper <aa8vb@ipass.net>
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-011-2/+4
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* Add $FreeBSD$ lines to man pages that are missing them to make itmpp1999-08-281-0/+2
| | | | | | | easier for translation teams. PR: docs/13418 Submitted by: Alexey Zelkin <phantom@cris.net>
* $Id$ -> $FreeBSD$peter1999-08-283-3/+3
|
* Make ldd work on alpha.dfr1998-09-163-8/+15
|
* Fix a bug which caused ldd to execute scripts listed on its commandjdp1998-08-301-29/+28
| | | | | | | | line, instead of skipping them. Also make a few minor cleanups. PR: bin/7783
* Add -DFREEBSD_AOUT to CFLAGS to ensure we get the correct definitionspeter1998-06-121-2/+2
| | | | from <link.h>
* ldd standalone build, after repository copy.peter1998-06-011-2/+1
|
* Add ELF support.dfr1998-05-012-11/+62
|
* Use consistent spelling,hoek1997-12-251-1/+1
| | | | | | | | writeable -> writable (recall prior debate over this? :-) initialise -> initialize recognise -> recognize Merry Christmas! :)
* In the "ldd -v" output, display the N_AUX information for eachjdp1997-11-281-3/+13
| | | | | symbol. It indicates whether the symbol refers to a function or a data object.
* Touch up the code that implements "ldd -v".jdp1997-09-023-54/+86
| | | | | | | 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.
* fix a few spelling changesjmg1997-08-301-1/+1
| | | | | | | | Submitted by: Josh Gilliam Closes PR's: 4429, 4431-4438 PS: He has agreed to submit all contrib fixes back to the original author.
* Revert $FreeBSD$ to $Id$peter1997-02-223-3/+3
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-143-3/+3
| | | | | | | | 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.
* Set LD_TRACE_LOADED_OBJECTS to "1" instead of to "". The dynamic linkerjdp1997-01-121-2/+2
| | | | | now treats empty "LD_*" environment variables as if they were unset, per the standard SVR4 conventions.
* For "ldd -v", print shared object dependencies that were specified asjdp1997-01-101-3/+6
| | | | | pathnames (rather than as "-lfoo") correctly. Closes PR bin/2404.
* Made the synopsis in the man page conform to the style guide.bde1996-11-302-7/+3
| | | | | | Made the usage message conform to the style guide. Don't use the implementation variable `__progname'.
* make the Usage string match realitypeter1996-11-221-2/+4
| | | | Submitted by: faried nawaz <fn@uidaho.edu>, PR#2075
* oops, uninitialised variable.. -v mode depended on stack contents.peter1996-10-291-2/+2
| | | | Submitted by: Masafumi NAKANE <max@wide.ad.jp>, PR#1920
* Incorporate John Polstra's sods.c display of the details about thepeter1996-10-014-4/+533
| | | | | dynamic linking information in the executable. It's quite extensive. It's connected to ldd's (new) -v option.
* Support for specifying printf-like output specs to control the ldd outputpeter1996-10-012-4/+32
| | | | | | | as present in the new rtld version. Obtained from: NetBSD Reviewed by: nate, jdp
* Updated to recent version of Paul K.'s shlib code. This code has betternate1994-12-232-5/+9
| | | | | | | | | | 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
* Remove reference to the ld.so man page - ain't no such animal.jkh1994-06-171-1/+0
| | | | Reported by John Lind.
* Changes from Paul Kranenburg which bring us into sync with his sources:rich1994-06-151-30/+26
| | | | | | | | | | | | | | handling of errors through the standard err() and warn() more fixes for Geoff Rehmet's NULL pointer bug. fixes NULL pointer bugs when linking mono and nested X servers. supports a `-nostdlib' option. accept object files without a symbol table don't attempt dynamic linking when `-A' is given a few variable names have chaged (desc -> fd), and the formatting has changed which should make it much easier to track his sources. I tested 'make world' for /usr/src and X twice with these changes.
* This is Paul K's latest set of ld changes. A commit was necessary at thisjkh1994-02-132-3/+4
| | | | | | | | | | 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).
OpenPOWER on IntegriCloud