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
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]