Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)
User Commands (k - l) ld(1)
[ -y symbol_name5 ]
[ filename13 ] ...
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 first copy of
the duplicated procedure is the one that is kept. When building an executable
file, no space is allocated for the unused copies.
The default action is to accept multiple copies of only procedures specifically
marked as duplicatable by C++.
You can specify this flag as often as you want in the command line or an obey
file. Each specification is processed when encountered.
-allow_missing_libs
Tells ld not to stop processing when it cannot find an archive or a dynamic-link
library (DLL) after searching for the name specified by a -l or -lib flag. Instead,
a warning message is issued and processing continues.
You can specify this flag as often as you want in the command line or an obey
file. Each specification 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 file. Only the
first procedure having the MAIN attribute is listed as the main entry point in the
file 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 flag as often as you want in the command line or an obey
file. Each specification is processed when encountered.
-ansistreams Specifies that C run-time library functions create files of file code 180 (C text as
binary) instead of file code 101 (EDIT). The type of files created can also be set
with the ANSISTREAMS C and C++ compiler pragma.
You can specify this flag as often as you want in the command line or an obey
file. Each specification is processed when encountered.
See the C/C++ Programmer’s Guide for more information.
-bdllsonly Tells ld to limit searches to DLLs when resolving the file names specified for the
-l and -lib flags.
If a file name is qualified, ld searches for a DLL with that name.
If a filename is unqualified, in each search path, ld first searches for a DLL with
the file name as specified in the -l or -lib flag. If ld cannot find a DLL, 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, it searches the path again with the same prefix but with .srl
as the suffix. For more information on search paths, see the Finding Libraries
subsection of this reference page under DESCRIPTION.
527188-007 Hewlett-Packard Company 5−33