Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)

ld(1) OSS Shell and Utilities Reference Manual
-verbose Directs ld to write error, warning, and informational messages to its output list-
ing, along with output specied by other options.
The default value is -no_verbose.
You can specify the ags -warn, -verbose, -noverbose, and -no_verbose as
often as you want in the command line or an obey le. The value used is the
nal value entered.
-warn Directs ld to write only error and warning messages to its output listing, along
with output specied by other options.
You can specify the ags -warn, -verbose, -noverbose, and -no_verbose as
often as you want in the command line or an obey le. The default value is -
no_verbose. The value used is the nal value entered.
-y symbol_name5
Tells ld to report which linkles dene and use the symbol symbol_name5. The
linkles are listed in the order encountered.
This information can be useful if a previous ld session produced error or warning
messages about a symbol being either undened or dened more than once.
Operands
filename13 Species one or more loadles or DLLs for the ld utility to link. This operand is
required for all ags except the -change and -strip ags. In the OSS environ-
ment, the value specied must be a valid OSS pathname.
DESCRIPTION
The ld utility links one or more TNS/R native position-independent code (PIC) linkles to pro-
duce an executable or nonexecutable native PIC loadle. You can also modify existing loadles
using ld.
You can invoke ld directly or, if you are creating a C or C++ program, you can use the c89 utility
to invoke ld automatically for you. On the command line, the lenames are the names of input
linkles or archives. Names of ags must be followed by spaces and are not case-sensitive,
except for the -l and -L ags.
If no ags or operands are used, the ld command displays online help.
Saving Temporary Files
ld creates temporary working les while it processes command line or obey le information.
These temporary working les are given names of the form ZLDNFnnn,where:
nnn is a unique sequentially assigned decimal number, beginning with 000.
To create a nal permanent le with the same name as an existing loadle, ld must rst remove
the existing le. If ld processing is interrupted during the process of removing and recreating the
output loadle, all work can be lost.
The -temp_o ag allows you to save the completed working le as a temporary regular le with
a known lename before the original loadle is removed. The temporary le is itself removed
after the nal permanent loadle is completely written.
Finding Libraries
The OSS version of ld searches for libraries in the following locations when resolving the values
specied for the -l and -lib ags:
1. Locations specied by the current -rst_l ag
544 Hewlett-Packard Company 527188-003