cvs commit: src/usr.bin/ldd ldd.1 ldd.c

Edwin Groothuis edwin at
Thu Jul 10 01:33:58 UTC 2008

edwin       2008-07-10 01:33:48 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    usr.bin/ldd          ldd.1 ldd.c 
  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 at ed-exigent>ldd `which httpd`
      ldd: /usr/local/sbin/httpd: can't read program header
      ldd: /usr/local/sbin/httpd: not a dynamic executable
      [/] root at ed-exigent>LD_32_TRACE_LOADED_OBJECTS==1 `which httpd` => /lib32// (0x280c8000) => /usr/local/lib/ (0x280de000) => /usr/local/lib/ (0x280f2000) => /usr/local/lib/ (0x28110000) => /usr/local/lib/ (0x281fd000) => /lib32// (0x2821d000) => not found (0x0) => /lib32// (0x28235000) => /usr/lib32/ (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   Changes    Path  +6 -0      src/usr.bin/ldd/ldd.1  +211 -101  src/usr.bin/ldd/ldd.c

More information about the cvs-src mailing list