Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)
Table Of Contents
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 specified by other options.
The default value is -no_verbose.
You can specify the flags -warn, -verbose, -noverbose, and -no_verbose as
often as you want in the command line or an obey file. The value used is the
final value entered.
-warn Directs ld to write only error and warning messages to its output listing, along
with output specified by other options.
You can specify the flags -warn, -verbose, -noverbose, and -no_verbose as
often as you want in the command line or an obey file. The default value is -
no_verbose. The value used is the final value entered.
-y symbol_name5
Tells ld to report which linkfiles define and use the symbol symbol_name5. The
linkfiles 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 undefined or defined more than once.
Operands
filename13 Specifies one or more loadfiles or DLLs for the ld utility to link. This operand is
required for all flags except the -change and -strip flags. In the OSS environ-
ment, the value specified must be a valid OSS pathname.
DESCRIPTION
The ld utility links one or more TNS/R native position-independent code (PIC) linkfiles to pro-
duce an executable or nonexecutable native PIC loadfile. You can also modify existing loadfiles
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 filenames are the names of input
linkfiles or archives. Names of flags must be followed by spaces and are not case-sensitive,
except for the -l and -L flags.
If no flags or operands are used, the ld command displays online help.
Saving Temporary Files
ld creates temporary working files while it processes command line or obey file information.
These temporary working files are given names of the form ZLDNFnnn,where:
nnn is a unique sequentially assigned decimal number, beginning with 000.
To create a final permanent file with the same name as an existing loadfile, ld must first remove
the existing file. If ld processing is interrupted during the process of removing and recreating the
output loadfile, all work can be lost.
The -temp_o flag allows you to save the completed working file as a temporary regular file with
a known filename before the original loadfile is removed. The temporary file is itself removed
after the final permanent loadfile is completely written.
Finding Libraries
The OSS version of ld searches for libraries in the following locations when resolving the values
specified for the -l and -lib flags:
1. Locations specified by the current -first_l flag
5−44 Hewlett-Packard Company 527188-003