Dec 122017
 
LDD-SRC is a utility for LINUX which will show you what shared libraries an application needs inorder to run properly. Mysterious segmentation faults can be caused by missing libraries.
File LDD-SRC.ZIP from The Programmer’s Corner in
Category UNIX Files
LDD-SRC is a utility for LINUX which will show you what shared libraries an application needs inorder to run properly. Mysterious segmentation faults can be caused by missing libraries.
File Name File Size Zip Size Zip Type
LDD-SRC.DOC 1022 560 deflated
LDD-SRC.TAZ 17183 16804 deflated

Download File LDD-SRC.ZIP Here

Contents of the LDD-SRC.DOC file


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]


 December 12, 2017  Add comments

Leave a Reply