CVS log for src/usr.bin/ldd/ldd.c
Up to [FreeBSD] / src / usr.bin / ldd
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.41.2.1.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 11 04:20:22 2011 UTC (2 months, 4 weeks ago) by kensmith
Branches: RELENG_9_0
CVS tags: RELENG_9_0_0_RELEASE
Diff to: previous 1.41.2.1: preferred, colored
Changes since revision 1.41.2.1: +0 -0 lines
SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release cycle. Approved by: re (implicit)
Revision 1.41.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 23 00:51:37 2011 UTC (4 months, 2 weeks ago) by kensmith
Branches: RELENG_9
CVS tags: RELENG_9_0_BP
Branch point for: RELENG_9_0
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +0 -0 lines
SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith Copy head to stable/9 as part of 9.0-RELEASE release cycle. Approved by: re (implicit)
Revision 1.33.24.3.8.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:10:29 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_7_4
CVS tags: RELENG_7_4_0_RELEASE
Diff to: previous 1.33.24.3: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33.24.3: +0 -0 lines
SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release. Approved by: re (implicit)
Revision 1.40.2.2.2.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:09:25 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_8_2
CVS tags: RELENG_8_2_0_RELEASE
Diff to: previous 1.40.2.2: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40.2.2: +0 -0 lines
SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release. Approved by: re (implicit)
Revision 1.40.2.2: download - view: text, markup, annotated - select for diffs
Wed Nov 24 22:44:10 2010 UTC (14 months, 2 weeks ago) by obrien
Branches: RELENG_8
CVS tags: RELENG_8_2_BP
Branch point for: RELENG_8_2
Diff to: previous 1.40.2.1: preferred, colored; branchpoint 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40.2.1: +2 -2 lines
SVN rev 215809 on 2010-11-24 22:44:10Z by obrien MFC: r215705: hdr.elf.e_ident[EI_OSABI] is not a bitmask
Revision 1.41: download - view: text, markup, annotated - select for diffs
Mon Nov 22 20:18:46 2010 UTC (14 months, 2 weeks ago) by brucec
Branches: MAIN
CVS tags: RELENG_9_BP, HEAD
Branch point for: RELENG_9
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +2 -2 lines
SVN rev 215705 on 2010-11-22 20:18:46Z by brucec hdr.elf.e_ident[EI_OSABI] is not a bitmask so '==' should been used. Reported by: Artem Belevich <fbsdlist at src.cx>
Revision 1.40.2.1.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 14 02:09:06 2010 UTC (19 months, 4 weeks ago) by kensmith
Branches: RELENG_8_1
CVS tags: RELENG_8_1_0_RELEASE
Diff to: previous 1.40.2.1: preferred, colored; next MAIN 1.40.2.2: preferred, colored
Changes since revision 1.40.2.1: +0 -0 lines
SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith Copy stable/8 to releng/8.1 in preparation for 8.1-RC1. Approved by: re (implicit)
Revision 1.33.24.3.6.1: download - view: text, markup, annotated - select for diffs
Wed Feb 10 00:26:20 2010 UTC (2 years ago) by kensmith
Branches: RELENG_7_3
CVS tags: RELENG_7_3_0_RELEASE
Diff to: previous 1.33.24.3: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33.24.3: +0 -0 lines
SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process. Approved by: re (implicit)
Revision 1.40.2.1.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 25 01:10:29 2009 UTC (2 years, 3 months ago) by kensmith
Branches: RELENG_8_0
CVS tags: RELENG_8_0_0_RELEASE
Diff to: previous 1.40.2.1: preferred, colored; next MAIN 1.40.2.2: preferred, colored
Changes since revision 1.40.2.1: +0 -0 lines
SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure. Approved by: re (implicit)
Revision 1.40.2.1: download - view: text, markup, annotated - select for diffs
Mon Aug 3 08:13:06 2009 UTC (2 years, 6 months ago) by kensmith
Branches: RELENG_8
CVS tags: RELENG_8_1_BP, RELENG_8_0_BP
Branch point for: RELENG_8_1, RELENG_8_0
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +0 -0 lines
SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith Copy head to stable/8 as part of 8.0 Release cycle. Approved by: re (Implicit)
Revision 1.33.24.3.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 15 03:14:26 2009 UTC (2 years, 9 months ago) by kensmith
Branches: RELENG_7_2
CVS tags: RELENG_7_2_0_RELEASE
Diff to: previous 1.33.24.3: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33.24.3: +0 -0 lines
SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE. Approved by: re (implicit)
Revision 1.33.24.3.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 25 02:59:29 2008 UTC (3 years, 2 months ago) by kensmith
Branches: RELENG_7_1
CVS tags: RELENG_7_1_0_RELEASE
Diff to: previous 1.33.24.3: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33.24.3: +0 -0 lines
SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith Create releng/7.1 in preparation for moving into RC phase of 7.1 release cycle. Approved by: re (implicit)
Revision 1.33.14.3.2.1: download - view: text, markup, annotated - select for diffs
Thu Oct 2 02:57:24 2008 UTC (3 years, 4 months ago) by kensmith
Branches: RELENG_6_4
CVS tags: RELENG_6_4_0_RELEASE
Diff to: previous 1.33.14.3: preferred, colored; next MAIN 1.33.24.1: preferred, colored
Changes since revision 1.33.14.3: +0 -0 lines
SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith Create releng/6.4 from stable/6 in preparation for 6.4-RC1. Approved by: re (implicit)
Revision 1.33.14.3: download - view: text, markup, annotated - select for diffs
Tue Aug 26 17:40:41 2008 UTC (3 years, 5 months ago) by jhb
Branches: RELENG_6
CVS tags: RELENG_6_4_BP
Branch point for: RELENG_6_4
Diff to: previous 1.33.14.2: preferred, colored; branchpoint 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33.14.2: +67 -34 lines
SVN rev 182200 on 2008-08-26 17:40:41Z by jhb MFC: Build a /usr/bin/ldd32 binary on amd64 and use it for 32-bit objects passed to ldd. This enables tracing of 32-bit shared libraries.
Revision 1.33.24.3: download - view: text, markup, annotated - select for diffs
Tue Aug 26 17:36:38 2008 UTC (3 years, 5 months ago) by jhb
Branches: RELENG_7
CVS tags: RELENG_7_4_BP, RELENG_7_3_BP, RELENG_7_2_BP, RELENG_7_1_BP
Branch point for: RELENG_7_4, RELENG_7_3, RELENG_7_2, RELENG_7_1
Diff to: previous 1.33.24.2: preferred, colored; branchpoint 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33.24.2: +67 -34 lines
SVN rev 182199 on 2008-08-26 17:36:38Z by jhb MFC: Build a /usr/bin/ldd32 binary on amd64 and use it for 32-bit objects passed to ldd. This enables tracing of 32-bit shared libraries.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Sat Aug 2 12:04:59 2008 UTC (3 years, 6 months ago) by jhb
Branches: MAIN
CVS tags: RELENG_8_BP
Branch point for: RELENG_8
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +9 -11 lines
SVN rev 181161 on 2008-08-02 12:04:59Z by jhb A few style and whitespace fixes. Submitted by: bde
Revision 1.39: download - view: text, markup, annotated - select for diffs
Fri Aug 1 21:52:41 2008 UTC (3 years, 6 months ago) by jhb
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +67 -32 lines
SVN rev 181136 on 2008-08-01 21:52:41Z by 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)
Revision 1.33.24.2: download - view: text, markup, annotated - select for diffs
Wed Jul 30 03:33:49 2008 UTC (3 years, 6 months ago) by edwin
Branches: RELENG_7
Diff to: previous 1.33.24.1: preferred, colored; branchpoint 1.33: preferred, colored
Changes since revision 1.33.24.1: +15 -4 lines
SVN rev 180985 on 2008-07-30 03:33:49Z by edwin MFC of 180646, 180877: 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@
Revision 1.33.14.2: download - view: text, markup, annotated - select for diffs
Wed Jul 30 03:32:32 2008 UTC (3 years, 6 months ago) by edwin
Branches: RELENG_6
Diff to: previous 1.33.14.1: preferred, colored; branchpoint 1.33: preferred, colored
Changes since revision 1.33.14.1: +15 -4 lines
SVN rev 180984 on 2008-07-30 03:32:32Z by edwin MFC of 180646, 180877: 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@
Revision 1.38: download - view: text, markup, annotated - select for diffs
Mon Jul 28 12:49:16 2008 UTC (3 years, 6 months ago) by edwin
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +5 -8 lines
SVN rev 180877 on 2008-07-28 12:49:16Z by edwin Fix text in the comment why we check for ELF32_R_TYPE Approved by: bde@ MFC after: 2 days2 days
Revision 1.37: download - view: text, markup, annotated - select for diffs
Mon Jul 21 02:13:14 2008 UTC (3 years, 6 months ago) by edwin
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +18 -4 lines
SVN rev 180646 on 2008-07-21 02:13:14Z by edwin 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
Revision 1.33.14.1: download - view: text, markup, annotated - select for diffs
Thu Jul 10 01:33:48 2008 UTC (3 years, 7 months ago) by edwin
Branches: RELENG_6
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +211 -101 lines
SVN rev 180405 on 2008-07-10 01:33:48Z by edwin MFC of changes 180234-180236: 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)
Revision 1.33.24.1: download - view: text, markup, annotated - select for diffs
Thu Jul 10 01:32:08 2008 UTC (3 years, 7 months ago) by edwin
Branches: RELENG_7
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +211 -101 lines
SVN rev 180404 on 2008-07-10 01:32:08Z by edwin MFC of changes 180234-180236: 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)
Revision 1.36: download - view: text, markup, annotated - select for diffs
Thu Jul 3 22:37:51 2008 UTC (3 years, 7 months ago) by edwin
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +76 -2 lines
SVN rev 180236 on 2008-07-03 22:37:51Z by 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
Revision 1.35: download - view: text, markup, annotated - select for diffs
Thu Jul 3 22:30:18 2008 UTC (3 years, 7 months ago) by edwin
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +121 -82 lines
SVN rev 180235 on 2008-07-03 22:30:18Z by edwin 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
Revision 1.34: download - view: text, markup, annotated - select for diffs
Thu Jul 3 22:26:43 2008 UTC (3 years, 7 months ago) by edwin
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +34 -37 lines
SVN rev 180234 on 2008-07-03 22:26:43Z by edwin stylify ldd.c, no functional changes. Approved by: bde (mentor) MFC after: 1 week
Revision 1.33: download - view: text, markup, annotated - select for diffs
Sat Oct 19 10:18:29 2002 UTC (9 years, 3 months ago) by sobomax
Branches: MAIN
CVS tags: RELENG_7_BP, RELENG_7_0_BP, RELENG_7_0_0_RELEASE, RELENG_7_0, RELENG_6_BP, RELENG_6_3_BP, RELENG_6_3_0_RELEASE, RELENG_6_3, RELENG_6_2_BP, RELENG_6_2_0_RELEASE, RELENG_6_2, RELENG_6_1_BP, RELENG_6_1_0_RELEASE, RELENG_6_1, RELENG_6_0_BP, RELENG_6_0_0_RELEASE, RELENG_6_0, RELENG_5_BP, RELENG_5_5_BP, RELENG_5_5_0_RELEASE, RELENG_5_5, RELENG_5_4_BP, RELENG_5_4_0_RELEASE, RELENG_5_4, RELENG_5_3_BP, RELENG_5_3_0_RELEASE, RELENG_5_3, RELENG_5_2_BP, RELENG_5_2_1_RELEASE, RELENG_5_2_0_RELEASE, RELENG_5_2, RELENG_5_1_BP, RELENG_5_1_0_RELEASE, RELENG_5_1, RELENG_5_0_BP, RELENG_5_0_0_RELEASE, RELENG_5_0, RELENG_5
Branch point for: RELENG_7, RELENG_6
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +4 -5 lines
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
Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri May 17 17:06:56 2002 UTC (9 years, 8 months ago) by knu
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +5 -4 lines
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@
Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Apr 28 12:55:35 2002 UTC (9 years, 9 months ago) by markm
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +11 -13 lines
Warns; ANSIfy, constify and move declarations into a common header.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Sat Apr 20 20:09:29 2002 UTC (9 years, 9 months ago) by mike
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +1 -0 lines
Include <arpa/inet.h> for prototype of ntohl() used in the N_BADMAG() macro.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Fri Mar 22 01:22:47 2002 UTC (9 years, 10 months ago) by imp
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +1 -1 lines
remove __P
Revision 1.18.2.7: download - view: text, markup, annotated - select for diffs
Wed Feb 27 18:35:53 2002 UTC (9 years, 11 months ago) by sobomax
Branches: RELENG_4
CVS tags: RELENG_4_9_BP, RELENG_4_9_0_RELEASE, RELENG_4_9, RELENG_4_8_BP, RELENG_4_8_0_RELEASE, RELENG_4_8, RELENG_4_7_BP, RELENG_4_7_0_RELEASE, RELENG_4_7, RELENG_4_6_BP, RELENG_4_6_2_RELEASE, RELENG_4_6_1_RELEASE, RELENG_4_6_0_RELEASE, RELENG_4_6, RELENG_4_11_BP, RELENG_4_11_0_RELEASE, RELENG_4_11, RELENG_4_10_BP, RELENG_4_10_0_RELEASE, RELENG_4_10
Diff to: previous 1.18.2.6: preferred, colored; branchpoint 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18.2.6: +7 -1 lines
MFC: inspect ELF header and reject any non-FreeBSD shared objects.
Revision 1.18.2.6: download - view: text, markup, annotated - select for diffs
Mon Feb 18 08:47:51 2002 UTC (9 years, 11 months ago) by sobomax
Branches: RELENG_4
Diff to: previous 1.18.2.5: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.5: +12 -2 lines
MFC: allow ldd(1) be used on shlibs.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun Feb 17 07:04:32 2002 UTC (9 years, 11 months ago) by obrien
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +11 -5 lines
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>
Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Feb 8 04:08:57 2002 UTC (10 years ago) by sobomax
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +7 -1 lines
Inspect ELF header and reject any non-FreeBSD shared objects. MFC after: 2 weeks
Revision 1.18.2.5: download - view: text, markup, annotated - select for diffs
Thu Feb 7 09:56:22 2002 UTC (10 years ago) by sobomax
Branches: RELENG_4
Diff to: previous 1.18.2.4: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.4: +2 -2 lines
MFC: GC meaningless assignment.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Mon Feb 4 10:44:15 2002 UTC (10 years ago) by sobomax
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +0 -0 lines
(forced) Previous commit (ldd on shlibs) is a subject of: MFC after: 2 weeks
Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon Feb 4 10:33:48 2002 UTC (10 years ago) by sobomax
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +12 -2 lines
Allow ldd(1) be used on shared libraries in addition to executables.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Mon Feb 4 10:23:23 2002 UTC (10 years ago) by sobomax
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -2 lines
GC meaningless assignment. MFC after: 3 days
Revision 1.18.2.4: download - view: text, markup, annotated - select for diffs
Wed Jul 11 23:59:11 2001 UTC (10 years, 7 months ago) by obrien
Branches: RELENG_4
CVS tags: RELENG_4_5_BP, RELENG_4_5_0_RELEASE, RELENG_4_5, RELENG_4_4_BP, RELENG_4_4_0_RELEASE, RELENG_4_4
Diff to: previous 1.18.2.3: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.3: +2 -2 lines
MFC: * Most of existing include/elf.h is in elf-hints.h.
elf.h is now a compatibility header with Solaris/SVR4.
* Consumers of elf.h now use the minimalist elf header possible.
This change is motivated by Binutils 2.11 and too much clashing over
our base elf headers and the Binutils elf headers.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Jul 9 09:23:49 2001 UTC (10 years, 7 months ago) by brian
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -2 lines
Fix the type of the NULL arg to execl() Idea from: Theo de Raadt <deraadt@openbsd.org>
Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed May 2 23:56:20 2001 UTC (10 years, 9 months ago) by obrien
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -2 lines
* 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.
Revision 1.18.2.3: download - view: text, markup, annotated - select for diffs
Sun Mar 4 08:44:01 2001 UTC (10 years, 11 months ago) by kris
Branches: RELENG_4
CVS tags: RELENG_4_3_BP, RELENG_4_3_0_RELEASE, RELENG_4_3
Diff to: previous 1.18.2.2: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.2: +2 -2 lines
MFC: r1.19: correct getopt return value
Revision 1.18.2.2: download - view: text, markup, annotated - select for diffs
Sun Mar 4 08:43:10 2001 UTC (10 years, 11 months ago) by kris
Branches: RELENG_4
Diff to: previous 1.18.2.1: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.1: +7 -10 lines
MFC: r1.20: update includes and improve error reporting
Revision 1.18.2.1: download - view: text, markup, annotated - select for diffs
Wed Jan 10 08:10:27 2001 UTC (11 years, 1 month ago) by ache
Branches: RELENG_4
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +16 -13 lines
MFC: fix lseek arg, error checking
Revision 1.21: download - view: text, markup, annotated - select for diffs
Fri Dec 15 13:20:43 2000 UTC (11 years, 1 month ago) by ache
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +16 -13 lines
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
Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Dec 10 20:54:13 2000 UTC (11 years, 2 months ago) by charnier
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +7 -10 lines
Add rcsid. Remove unused #include. Remove error() definition and replace with warn().
Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Sep 4 06:09:47 2000 UTC (11 years, 5 months ago) by imp
Branches: MAIN
CVS tags: PRE_SMPNG
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -2 lines
getopt and friends are declared in <unistd.h> getopt returns -1 not EOF.
Revision 1.17.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 29 15:29:20 1999 UTC (12 years, 5 months ago) by peter
Branches: RELENG_3
CVS tags: RELENG_3_5_0_RELEASE, RELENG_3_4_0_RELEASE, RELENG_3_3_0_RELEASE
Diff to: previous 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17: +1 -1 lines
$Id$ -> $FreeBSD$
Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Aug 28 01:02:43 1999 UTC (12 years, 5 months ago) by peter
Branches: MAIN
CVS tags: RELENG_4_BP, RELENG_4_2_0_RELEASE, RELENG_4_1_1_RELEASE, RELENG_4_1_0_RELEASE, RELENG_4_0_0_RELEASE
Branch point for: RELENG_4
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +1 -1 lines
$Id$ -> $FreeBSD$
Revision 1.17: download - view: text, markup, annotated - select for diffs
Wed Sep 16 09:31:48 1998 UTC (13 years, 4 months ago) by dfr
Branches: MAIN
CVS tags: RELENG_3_BP, RELENG_3_2_PAO_BP, RELENG_3_2_PAO, RELENG_3_2_0_RELEASE, RELENG_3_1_0_RELEASE, RELENG_3_0_0_RELEASE
Branch point for: RELENG_3
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +6 -4 lines
Make ldd work on alpha.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Aug 30 18:30:59 1998 UTC (13 years, 5 months ago) by jdp
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +28 -29 lines
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
Revision 1.15: download - view: text, markup, annotated - select for diffs
Fri May 1 08:40:11 1998 UTC (13 years, 9 months ago) by dfr
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +52 -9 lines
Add ELF support.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue Sep 2 21:54:39 1997 UTC (14 years, 5 months ago) by jdp
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -2 lines
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.
Revision 1.8.2.3: download - view: text, markup, annotated - select for diffs
Fri Aug 8 02:18:11 1997 UTC (14 years, 6 months ago) by jdp
Diff to: previous 1.8.2.2: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8.2.2: +2 -2 lines
Sync with -current.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Feb 22 15:46:43 1997 UTC (14 years, 11 months ago) by peter
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +1 -1 lines
Revert $FreeBSD$ to $Id$
Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Jan 14 05:58:07 1997 UTC (15 years ago) by jkh
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +1 -1 lines
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.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Jan 12 00:10:57 1997 UTC (15 years, 1 month ago) by jdp
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -2 lines
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.
Revision 1.8.2.2: download - view: text, markup, annotated - select for diffs
Tue Dec 3 10:32:50 1996 UTC (15 years, 2 months ago) by phk
Diff to: previous 1.8.2.1: preferred, colored
Changes since revision 1.8.2.1: +2 -6 lines
YAMFC
Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Nov 30 16:12:46 1996 UTC (15 years, 2 months ago) by bde
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -6 lines
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'.
Revision 1.8.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 23 08:22:05 1996 UTC (15 years, 2 months ago) by phk
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -2 lines
YAMFC
Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Nov 22 13:58:03 1996 UTC (15 years, 2 months ago) by peter
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -2 lines
make the Usage string match reality Submitted by: faried nawaz <fn@uidaho.edu>, PR#2075
Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Oct 29 18:45:20 1996 UTC (15 years, 3 months ago) by peter
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2 lines
oops, uninitialised variable.. -v mode depended on stack contents. Submitted by: Masafumi NAKANE <max@wide.ad.jp>, PR#1920
Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Oct 1 02:16:15 1996 UTC (15 years, 4 months ago) by peter
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +18 -2 lines
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.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Oct 1 01:34:32 1996 UTC (15 years, 4 months ago) by peter
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +20 -3 lines
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 1.5: download - view: text, markup, annotated - select for diffs
Fri Dec 23 22:31:31 1994 UTC (17 years, 1 month ago) by nate
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +7 -4 lines
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
Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Jun 15 22:41:03 1994 UTC (17 years, 7 months ago) by rich
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +26 -30 lines
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.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Feb 13 20:42:43 1994 UTC (18 years ago) by jkh
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -2 lines
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).
Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Nov 9 04:19:27 1993 UTC (18 years, 3 months ago) by paul
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
Updated to newest ld from pk.
lib.c:
Pull in archives containing definitions needed by shared objects.
warnings.c:
Less spurious "undefined symbol" msgs for shared library defined
symbols.
ld.c:
Do a better job of recognising data in text segments, eg. `const char []'.
shlib.c,ld/rtld/{Makefile rtld.c}
Use strsep() in stead of strtok() and restore colons in eg. env. vars.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Nov 3 23:41:42 1993 UTC (18 years, 3 months ago) by paul
Branches: MAIN
Imported NetBSD's ld for shared libs.
