Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)

ld(1) OSS Shell and Utilities Reference Manual
When a DLL cannot be found, ld issues an error message unless the
-allow_missing_libs ag is specied.
The -bdllsonly, -bdynamic, and -bstatic ags are search control toggles. Multi-
ple ags can be specied in a single ld invocation; the behavior specied
remains in effect until another ag in the set is specied. Thus, you can search
for both DLLs and archive les for some -l and -lib ags and search for just
archive les for others. The default library search control is -bdynamic.
-bdynamic Directs ld to search for DLLs and archive les when resolving the le names
specied for the -l and -lib ags.
If a le name is qualied, ld searches for a DLL or archive with that name.
If a lename is unqualied, in each search path, ld rst searches for a DLL or
archive with the le name as specied in the -l or -lib ag. If ld cannot nd a
DLL or archive, the le name is unqualied, and the search path is not in the
Guardian le system (/G), then ld prexes lib and sufxes .so to the le name
and searches again. If ld still cannot nd the DLL or archive, it searches the path
again with the same prex but with .srl as the sufx. If ld still cannot nd the
DLL or archive, it searches the path again with the same prex but with .a as the
sufx. For more information on search paths, see the Finding Libraries subsec-
tion of this reference page under DESCRIPTION.
When a DLL or archive cannot be found, ld issues an error message unless the
-allow_missing_libs ag is specied.
The -bdllsonly, -bdynamic, and -bstatic ags are search control toggles. Multi-
ple ags can be specied in a single ld invocation; the behavior specied
remains in effect until another ag in the set is specied. Thus, you can search
for both DLLs and archive les for some -l and -lib ags and search for just
archive les for others. The default library search control is -bdynamic.
-bglobalized Directs ld to use the following sequence as its linker searchList when resolving
the le names specied for the -l and -lib ags:
At link time:
1. Libraries on the libList
2. Breadth-rst transitive closure of DLLs on the libList
3. Implicit libraries
At load time:
1. Libraries on the libList
2. Breadth-rst transitive closure of DLLs on the libList
3. Loader loadList (libraries loaded by the program or libraries that
caused this loadle to be loaded; this list is built from the
programs and librarieslibList and a breadth-rst transitive clo-
sure of the libList-specied libraries)
4. Implicit libraries
A lename that is either a relative OSS pathname or a Guardian lename that is
not qualied is found using search path lists, as described in the Finding
Libraries subsection of this reference page under DESCRIPTION.
534 Hewlett-Packard Company 527188-004