Category : UNIX Files
Archive   : LDD-SRC.ZIP
Filename : LDD-SRC.DOC

 
Output of file : LDD-SRC.DOC contained in archive : LDD-SRC.ZIP
original file name on tsx-11.mit.edu is: ldd.src.tar.Z

I've heard several people asking for an ldd program for Linux. Well,
I finally broke down and wrote one! For those who don't know, ldd is
a program which prints the shared libraries required to run specified
programs.

Here's how it works. Ldd forks and execs each program with argc equal
to zero. The code which normally loads the shared libraries, notices
this special case and simply prints the required libraries and exits.

To install, copy ldd to to /usr/bin and replace __load.o in your current
libraries with the one provided here. In other words, do this as root:

cp ldd /usr/bin
ar rs /usr/lib/static/libc.a __load.o
ar rs /usr/lib/shared/libc.a __load.o

IMPORTANT NOTE: Ldd will NOT work with programs linked with an older
version of __load.o. If you try it, the program will attempt to run
with argc = 0. The results will be unpredictable.

Please let me know about any problems. Enjoy!

David Engel
[email protected]


  3 Responses to “Category : UNIX Files
Archive   : LDD-SRC.ZIP
Filename : LDD-SRC.DOC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/