Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

User Commands (k - l) ld(1)
[ -y symbol_name5 ]
[ lename13 ] ...
FLAGS
-allow_duplicate_procs
Tells ld to unconditionally accept multiple copies of a procedure. The only
check made is that all copies of the procedure have the same procedure attri-
butes; for example, it is acceptable if they have different sizes. The rst copy of
the duplicated procedure is the one that is kept. When building an executable
le, no space is allocated for the unused copies.
The default action is to accept multiple copies of only procedures specically
marked as duplicatable by C++.
You can specify this ag as often as you want in the command line or an obey
le. Each specication is processed when encountered.
-allow_missing_libs
Tells ld not to stop processing when it cannot nd an archive or a dynamic-link
library (DLL) after searching for the name specied by a -l or -lib ag. Instead,
a warning message is issued and processing continues.
You can specify this ag as often as you want in the command line or an obey
le. Each specication is processed when encountered.
The default action when a needed DLL or archive cannot be found is to stop pro-
cessing.
-allow_multiple_mains
Directs ld not to issue an error message if more than one procedure has the
MAIN attribute. All main procedures are included in the output le. Only the
rst procedure having the MAIN attribute is listed as the main entry point in the
le header.
The default action is to stop processing and report an error when more than one
procedure has the MAIN attribute.
You can specify this ag as often as you want in the command line or an obey
le. Each specication is processed when encountered.
-ansistreams Species that C run-time library functions create les of le code 180 (C text as
binary) instead of le code 101 (EDIT). The type of les created can also be set
with the ANSISTREAMS C and C++ compiler pragma.
You can specify this ag as often as you want in the command line or an obey
le. Each specication is processed when encountered.
See the C/C++ Programmers Guide for more information.
-bdllsonly Tells ld to limit searches to DLLs when resolving the le names specied for the
-l and -lib ags.
If a le name is qualied, ld searches for a DLL with that name.
If a lename is unqualied, in each search path, ld rst searches for a DLL with
the le name as specied in the -l or -lib ag. If ld cannot nd a DLL, 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, it searches the path again with the same prex but with .srl
as the sufx. For more information on search paths, see the Finding Libraries
subsection of this reference page under DESCRIPTION.
527188-007 Hewlett-Packard Company 533