As you seem to wish to experiment with modifying the link-editors, I encourage you to familiarize yourself with the functionality these tools provide. You can find all the necessary concepts described in the Linker and Libraries Manual:
http://docs.sun.com/app/docs/doc/819-0690 DEEPAK BHATIA wrote: > When I do dmake all in the following directory usr/src/cmd/sgs/libld > > I get the libld.so.4 again in usr/src/cmd/sgs/libld/i386 Which used the -L option to link against the debugging library in sgs/liblddbg/i386. > When I do > ldd libld.so.4 for this file, I get the following message > > liblddbg.so.4 => /lib/liblddbg.so.4 > liblddbg.so.4 (SUNWprivate_4.52) => (version not found) Because the runtime linker is binding to the debugging library found in /lib. You are building against one version of a library, and running against an older version. The version of the debugging library in sgs/liblddbg has a version SUNWprivate_4.5, where as the version of the debugging library in /lib doesn't. See pvs(1). The link-editors are a collection of executables and dependencies that should not be separated. If you build a new set of components under sgs, then you should install and run with these components as a family. -- Rod