Debugging a Program With dbx

Environment


LD_LIBRARY_PATH

A list of directories in which to search for libraries specified with the -l option. Multiple directories are separated by a colon. In the most general case, it contains two directory lists separated by a semicolon: dirlist1; dirlist2 If ild is called with any number of occurrences of -L, as in: ild ...-Lpath1...-Lpathn ... then the search path ordering is: dirlist1 path1 ... pathn dirlist2

When the list of directories does not contain a semicolon, it is interpreted as dirlist2. LD_LIBRARY_PATH is also used to specify library search directories to the runtime linker. That is, if LD_LIBRARY_PATH exists in the environment, the runtime linker searches the directories named in it, before its default directory, for shared objects to be linked with the program at execution.


Note -

When running a set-user-ID or set-group-ID program, the runtime linker searches only for libraries in /usr/lib. It also searches for any full pathname specified within the executable. A full pathname is the result of a runpath being specified when the executable was constructed. Any library dependencies specified as relative pathnames are silently ignored.



LD_LIBRARY_PATH_64

On Solaris 7, this environment variable is similar to LD_LIBRARY_PATH but overrrides it when searching for 64-bit dependencies.

When running Solaris 7 on a SPARC processor and linking in 32-bit mode, LD_LIBRARY_PATH_64 is ignored. If only LD_LIBRARY_PATH is defined, it is used for both 32-bit and 64-bit linking. If both LD_LIBRARY_PATH and LD_LIBRARY_PATH_64 are defined, the 32-bit linking is done using LD_LIBRARY_PATH and the 64-bit linking is done using LD_LIBRARY_PATH_64. See the Solaris Linker and Libraries Guide for more information on these environment variables.


LD_OPTIONS

A default set of options to ild. LD_OPTIONS is interpreted by ild as though its value had been placed on the command line immediately following the name used to invoke ild, as in: ild $LD_OPTIONS ... other-arguments ...


LD_PRELOAD

A list of shared objects that are to be interpreted by the runtime linker. The specified shared objects are linked in after the program being executed and before any other shared objects that the program references.


Note -

When running a set-user-ID or set-group-ID program, this option is silently ignored.



LD_RUN_PATH

An alternative mechanism for specifying a runpath to the link editor (see -R option). If both LD_RUN_PATH and the -R option are specified, the -R is used.


LD_DEBUG

(not supported by ild) Provide a list of tokens that cause the runtime linker to print debugging information to the standard error. The special token help indicates the full list of tokens available.


Note -

Environment variable names beginning with the characters `LD_ `are reserved for possible future enhancements to ld. Environment variable-names beginning with the characters `ILD_ ` are reserved for possible future enhancements to ild.