•Does not use embedded paths at link time to find dependent libraries.
•Considers the order of ld, +b and +s.
◦The +b option first means dld looks at the RPATH first when searching for dependent shared libraries. To get the default RPATH, you must specify ld +b. This instructs the linker to construct a default RPATH consisting of the
◦The +s option first means the dynamic loader looks at the SHLIB_PATH environment variable first when searching for dependent shared libraries. You must specify ld +s to force the dynamic loader to use SHLIB_PATH to search for shared libraries at runtime.
At runtime, the dynamic loader does a
•Does dynamic path searching for
•Uses SHLIB_PATH only if you specify ld +s (or chatr+s) for
•Allows RPATH inheritance from ancestors to children when searching for dependent
•Allows dynamic path searching on shared libraries loaded by shl_load routines, if the
DYNAMIC_FLAG is passed to shl_load().
•Does a
•Looks at RPATH or SHLIB_PATH first, depending on the ld +b/+s ordering for all ld
•Looks for the dynamic table entry as if the dynamic path bit is not set.
Using the Linker with +std for Standard Mode
The +std option instructs the linker to do a standard mode
This default may change in future releases.
When you use +std, the linker:
•Assumes
•All dependent shared libraries are output in the dynamic table in a DT_NEEDED entry. These dependent shared libraries are recorded as standard mode shared libraries.
•The ld +b and +s ordering is ignored. The ld +s option is on by default.
•Uses de facto standard internal name processing for dependent shared libraries.
•Uses embedded RPATHs at link time to find dependent shared libraries.
•If you do not specify ld +b, the linker uses a default RPATH consisting of the
LPATH, and the default directories /usr/lib/hpux32:/opt/langtools/lib/hpux32 for
Using Linker Commands 47