<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/usr.bin/ldd, branch stable/6</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=stable%2F6</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=stable%2F6'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2008-08-26T17:40:41Z</updated>
<entry>
<title>MFC: Build a /usr/bin/ldd32 binary on amd64 and use it for 32-bit objects</title>
<updated>2008-08-26T17:40:41Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2008-08-26T17:40:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=76fb62546a5577554fd2ae0cbc84de8b61681613'/>
<id>urn:sha1:76fb62546a5577554fd2ae0cbc84de8b61681613</id>
<content type='text'>
passed to ldd.  This enables tracing of 32-bit shared libraries.
</content>
</entry>
<entry>
<title>MFC of 180646, 180877:</title>
<updated>2008-07-30T03:32:32Z</updated>
<author>
<name>Edwin Groothuis</name>
<email>edwin@FreeBSD.org</email>
</author>
<published>2008-07-30T03:32:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=d73142e7117884228558cff04bd102f874d484f2'/>
<id>urn:sha1:d73142e7117884228558cff04bd102f874d484f2</id>
<content type='text'>
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@
</content>
</entry>
<entry>
<title>MFC of changes 180234-180236:</title>
<updated>2008-07-10T01:33:48Z</updated>
<author>
<name>Edwin Groothuis</name>
<email>edwin@FreeBSD.org</email>
</author>
<published>2008-07-10T01:33:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=aa7063821fe29f09fca54a734898069e708f9e90'/>
<id>urn:sha1:aa7063821fe29f09fca54a734898069e708f9e90</id>
<content type='text'>
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&gt;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&gt;LD_32_TRACE_LOADED_OBJECTS==1 `which httpd`
    libm.so.4 =&gt; /lib32//libm.so.4 (0x280c8000)
    libaprutil-1.so.2 =&gt; /usr/local/lib/libaprutil-1.so.2 (0x280de000)
    libexpat.so.6 =&gt; /usr/local/lib/libexpat.so.6 (0x280f2000)
    libiconv.so.3 =&gt; /usr/local/lib/libiconv.so.3 (0x28110000)
    libapr-1.so.2 =&gt; /usr/local/lib/libapr-1.so.2 (0x281fd000)
    libcrypt.so.3 =&gt; /lib32//libcrypt.so.3 (0x2821d000)
    libpthread.so.2 =&gt; not found (0x0)
    libc.so.6 =&gt; /lib32//libc.so.6 (0x28235000)
    libpthread.so.2 =&gt; /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 &gt;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)
</content>
</entry>
<entry>
<title>MFC 1.24:</title>
<updated>2007-05-19T11:14:56Z</updated>
<author>
<name>Pav Lucistnik</name>
<email>pav@FreeBSD.org</email>
</author>
<published>2007-05-19T11:14:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=2a88a988e045fbc0fcf6fecc3892916b96049f13'/>
<id>urn:sha1:2a88a988e045fbc0fcf6fecc3892916b96049f13</id>
<content type='text'>
  Expand documentation of -f option
</content>
</entry>
<entry>
<title>The type of some aout header types changed to uint_32, so now we need</title>
<updated>2004-06-29T21:13:15Z</updated>
<author>
<name>David Malone</name>
<email>dwmalone@FreeBSD.org</email>
</author>
<published>2004-06-29T21:13:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=a1e5be4482947e6fd0531dce943380fe3f2c6420'/>
<id>urn:sha1:a1e5be4482947e6fd0531dce943380fe3f2c6420</id>
<content type='text'>
to cast to long before printing. While I'm here, raise WARNS to 6.
</content>
</entry>
<entry>
<title>Fix a few WARNS:</title>
<updated>2004-02-15T22:01:23Z</updated>
<author>
<name>David Malone</name>
<email>dwmalone@FreeBSD.org</email>
</author>
<published>2004-02-15T22:01:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=10f106f5fd93734f70404f4b62b25f604ff11c17'/>
<id>urn:sha1:10f106f5fd93734f70404f4b62b25f604ff11c17</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/</title>
<updated>2002-12-30T21:18:15Z</updated>
<author>
<name>Jens Schweikhardt</name>
<email>schweikh@FreeBSD.org</email>
</author>
<published>2002-12-30T21:18:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=d64ada501ae33c02e7c4e3ce21962907df814a5a'/>
<id>urn:sha1:d64ada501ae33c02e7c4e3ce21962907df814a5a</id>
<content type='text'>
Add FreeBSD Id tag where missing.
</content>
</entry>
<entry>
<title>Fix a problem with RTLD_TRACE flag to dlopen(3), which sometimes can return</title>
<updated>2002-10-19T10:18:29Z</updated>
<author>
<name>Maxim Sobolev</name>
<email>sobomax@FreeBSD.org</email>
</author>
<published>2002-10-19T10:18:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=d1cf9ea2c4d424f77e8ed5efa5a8c3a2b1db219d'/>
<id>urn:sha1:d1cf9ea2c4d424f77e8ed5efa5a8c3a2b1db219d</id>
<content type='text'>
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 &lt;utsl@quic.net&gt;
MFC after:	1 week
</content>
</entry>
<entry>
<title>Initiate deorbit burn for the i386-only a.out related support.  Moves are</title>
<updated>2002-09-17T01:49:00Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>2002-09-17T01:49:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=66422f5b7a1a6055f0b2358268eb902aab6e2e3e'/>
<id>urn:sha1:66422f5b7a1a6055f0b2358268eb902aab6e2e3e</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>Fix a tiny bug in shlib support of ldd(1); if dlopen(lib, RTLD_TRACE)</title>
<updated>2002-05-17T17:06:56Z</updated>
<author>
<name>Akinori MUSHA</name>
<email>knu@FreeBSD.org</email>
</author>
<published>2002-05-17T17:06:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=005ba515dcf15a6e10fdda6af130c317f8b4e4b7'/>
<id>urn:sha1:005ba515dcf15a6e10fdda6af130c317f8b4e4b7</id>
<content type='text'>
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@
</content>
</entry>
</feed>
