edwin d843d0392c 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
2008-07-03 22:37:51 +00:00
..
2006-12-28 04:58:38 +00:00
2007-03-09 14:36:18 +00:00
2007-03-28 07:48:03 +00:00
2007-03-10 07:10:01 +00:00
2007-03-10 07:11:20 +00:00
2006-09-25 15:06:24 +00:00
2005-11-18 10:36:29 +00:00
2006-12-24 19:55:38 +00:00
2008-03-03 08:32:58 +00:00
2006-12-18 15:36:31 +00:00
2006-07-27 14:20:14 +00:00
2008-04-04 21:33:41 +00:00
2006-12-24 14:23:35 +00:00
2006-09-13 05:06:12 +00:00
2007-11-09 16:31:47 +00:00
2006-08-20 15:52:17 +00:00
2008-02-05 17:34:44 +00:00
2007-11-30 11:02:36 +00:00
2006-12-26 10:37:37 +00:00
2006-07-18 10:19:46 +00:00
2006-12-15 14:14:17 +00:00
2007-03-04 08:24:13 +00:00
2006-09-29 15:20:48 +00:00
2008-02-19 07:09:19 +00:00
2007-03-25 18:37:59 +00:00
2007-11-07 07:59:38 +00:00
2006-12-26 12:43:12 +00:00
2008-06-08 12:43:02 +00:00
2005-11-13 21:03:56 +00:00
2008-02-09 09:12:02 +00:00
2008-06-17 18:56:04 +00:00
2008-05-19 11:35:11 +00:00
2008-01-16 19:27:43 +00:00
2007-11-07 07:56:57 +00:00
2006-10-12 21:10:55 +00:00
2007-01-20 08:24:02 +00:00
2008-05-16 20:09:29 +00:00
2007-02-27 12:06:02 +00:00
2008-06-30 17:16:05 +00:00
2006-08-29 18:11:20 +00:00
2006-12-23 19:15:39 +00:00
2006-12-14 19:02:48 +00:00
2008-01-15 07:40:30 +00:00
2006-12-14 00:02:44 +00:00
2006-12-13 12:09:41 +00:00
2005-08-25 14:09:35 +00:00
2008-04-04 21:35:13 +00:00
2008-05-13 09:42:03 +00:00
2006-12-28 10:58:06 +00:00