#
d138df61 |
| 01-Oct-1996 |
Peter Wemm <peter@FreeBSD.org> |
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
|
Revision tags: release/2.1.0_cvs, release/2.0.5_cvs |
|
#
61f9ce8d |
| 23-Dec-1994 |
Nate Williams <nate@FreeBSD.org> |
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 updat
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
show more ...
|
Revision tags: release/2.0, release/1.1.5.1_cvs |
|
#
699e1b82 |
| 16-Jun-1994 |
Rich Murphey <rich@FreeBSD.org> |
Changes from Paul Kranenburg which bring us into sync with his sources:
handling of errors through the standard err() and warn() more fixes for Geoff Rehmet's NULL pointer bug. fixes NULL pointer
Changes from Paul Kranenburg which bring us into sync with his sources:
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.
show more ...
|
Revision tags: release/1.1.0_cvs |
|
#
09e3d49d |
| 13-Feb-1994 |
Jordan K. Hubbard <jkh@FreeBSD.org> |
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
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).
show more ...
|
#
b9ae52e3 |
| 04-Nov-1993 |
Paul Richards <paul@FreeBSD.org> |
Imported NetBSD's ld for shared libs.
|
Revision tags: release/8.1.0_cvs, release/8.1.0, release/7.3.0_cvs, release/7.3.0, release/8.0.0_cvs, release/8.0.0, release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0 |
|
#
52122f31 |
| 02-Aug-2008 |
John Baldwin <jhb@FreeBSD.org> |
A few style and whitespace fixes.
Submitted by: bde
|
#
e68ed793 |
| 01-Aug-2008 |
John Baldwin <jhb@FreeBSD.org> |
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 p
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)
show more ...
|
#
bff71350 |
| 28-Jul-2008 |
Edwin Groothuis <edwin@FreeBSD.org> |
Fix text in the comment why we check for ELF32_R_TYPE
Approved by: bde@ MFC after: 2 days2 days
|
#
8bd833ff |
| 21-Jul-2008 |
Edwin Groothuis <edwin@FreeBSD.org> |
After the commit of SVN rev 180236, wilko@ noticed that the approach doesn't work on the Alpha platform: machine/elf.h doesn't include sys/elf32.h there.
PR: related to bin/124906 Approved by: bde@
After the commit of SVN rev 180236, wilko@ noticed that the approach doesn't work on the Alpha platform: machine/elf.h doesn't include sys/elf32.h there.
PR: related to bin/124906 Approved by: bde@ MFC after: 1 week
show more ...
|
#
fffd993d |
| 04-Jul-2008 |
Edwin Groothuis <edwin@FreeBSD.org> |
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/sbi
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
show more ...
|
#
d3c1e14b |
| 04-Jul-2008 |
Edwin Groothuis <edwin@FreeBSD.org> |
Extract the determination of the kind of (dynamic) executable from the main-loop into a seperate function. Instead of using hardcoded environment variables, define them in a lookup table. For the res
Extract the determination of the kind of (dynamic) executable from the main-loop into a seperate function. Instead of using hardcoded environment variables, define them in a lookup table. For the rest, no functionality changes.
Approved by: bde (mentor) MFC after: 1 week
show more ...
|
#
a0d476a9 |
| 04-Jul-2008 |
Edwin Groothuis <edwin@FreeBSD.org> |
stylify ldd.c, no functional changes.
Approved by: bde (mentor) MFC after: 1 week
|
Revision tags: release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0, release/6.2.0_cvs, release/6.2.0, release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0, release/5.4.0_cvs, release/5.4.0, release/4.11.0_cvs, release/4.11.0, release/5.3.0_cvs, release/5.3.0, release/4.10.0_cvs, release/4.10.0, release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0, release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0 |
|
#
d1cf9ea2 |
| 19-Oct-2002 |
Maxim Sobolev <sobomax@FreeBSD.org> |
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
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
show more ...
|
Revision tags: release/4.7.0_cvs, release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs |
|
#
005ba515 |
| 17-May-2002 |
Akinori MUSHA <knu@FreeBSD.org> |
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 l
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@
show more ...
|
#
a53809fd |
| 28-Apr-2002 |
Mark Murray <markm@FreeBSD.org> |
Warns; ANSIfy, constify and move declarations into a common header.
|
#
a2cfdda8 |
| 20-Apr-2002 |
Mike Barcroft <mike@FreeBSD.org> |
Include <arpa/inet.h> for prototype of ntohl() used in the N_BADMAG() macro.
|
#
f1bb2cd2 |
| 22-Mar-2002 |
Warner Losh <imp@FreeBSD.org> |
remove __P
|
#
20249943 |
| 17-Feb-2002 |
David E. O'Brien <obrien@FreeBSD.org> |
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 Mey
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>
show more ...
|
#
97b79abc |
| 08-Feb-2002 |
Maxim Sobolev <sobomax@FreeBSD.org> |
Inspect ELF header and reject any non-FreeBSD shared objects.
MFC after: 2 weeks
|
Revision tags: release/4.5.0_cvs, release/4.4.0_cvs |
|
#
c6de4ce7 |
| 04-Feb-2002 |
Maxim Sobolev <sobomax@FreeBSD.org> |
Allow ldd(1) be used on shared libraries in addition to executables.
|
#
fc41545e |
| 04-Feb-2002 |
Maxim Sobolev <sobomax@FreeBSD.org> |
GC meaningless assignment.
MFC after: 3 days
|
#
7bc6d015 |
| 09-Jul-2001 |
Brian Somers <brian@FreeBSD.org> |
Fix the type of the NULL arg to execl()
Idea from: Theo de Raadt <deraadt@openbsd.org>
|
#
5e6220d9 |
| 03-May-2001 |
David E. O'Brien <obrien@FreeBSD.org> |
* 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 B
* 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.
show more ...
|
Revision tags: release/4.3.0_cvs, release/4.3.0 |
|
#
e6f0df2b |
| 15-Dec-2000 |
Andrey A. Chernov <ache@FreeBSD.org> |
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
|
#
3e762626 |
| 10-Dec-2000 |
Philippe Charnier <charnier@FreeBSD.org> |
Add rcsid. Remove unused #include. Remove error() definition and replace with warn().
|