Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)
ld(1) OSS Shell and Utilities Reference Manual
When a DLL cannot be found, ld issues an error message unless the
-allow_missing_libs flag is specified.
The -bdllsonly, -bdynamic, and -bstatic flags are search control toggles. Multi-
ple flags can be specified in a single ld invocation; the behavior specified
remains in effect until another flag in the set is specified. Thus, you can search
for both DLLs and archive files for some -l and -lib flags and search for just
archive files for others. The default library search control is -bdynamic.
-bdynamic Directs ld to search for DLLs and archive files when resolving the file names
specified for the -l and -lib flags.
If a file name is qualified, ld searches for a DLL or archive with that name.
If a filename is unqualified, in each search path, ld first searches for a DLL or
archive with the file name as specified in the -l or -lib flag. If ld cannot find a
DLL or archive, the file name is unqualified, and the search path is not in the
Guardian file system (/G), then ld prefixes lib and suffixes .so to the file name
and searches again. If ld still cannot find the DLL or archive, it searches the path
again with the same prefix but with .srl as the suffix. If ld still cannot find the
DLL or archive, it searches the path again with the same prefix but with .a as the
suffix. 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 flag is specified.
The -bdllsonly, -bdynamic, and -bstatic flags are search control toggles. Multi-
ple flags can be specified in a single ld invocation; the behavior specified
remains in effect until another flag in the set is specified. Thus, you can search
for both DLLs and archive files for some -l and -lib flags and search for just
archive files for others. The default library search control is -bdynamic.
-bglobalized Directs ld to use the following sequence as its linker searchList when resolving
the file names specified for the -l and -lib
flags:
• At
link time:
1. Libraries on the libList
2. Breadth-first transitive closure of DLLs on the libList
3. Implicit libraries
• At load time:
1. Libraries on the libList
2. Breadth-first transitive closure of DLLs on the libList
3. Loader loadList (libraries loaded by the program or libraries that
caused this loadfile to be loaded; this list is built from the
program’s and libraries’ libList and a breadth-first transitive clo-
sure of the libList-specified libraries)
4. Implicit libraries
A filename that is either a relative OSS pathname or a Guardian filename that is
not qualified is found using search path lists, as described in the Finding
Libraries subsection of this reference page under DESCRIPTION.
5−34 Hewlett-Packard Company 527188-021