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

nld(1) OSS Shell and Utilities Reference Manual
-ul Creates a native user library. Specify this ag when linking modules to create a native
user library.
When the -ul ag is specied, all functions are exported unless the -export option is
also used.
-verbose Directs nld to write warning and informational messages to its output listing. The
default value is -noverbose.
-x Removes symbol information used for symbolic debugging from the output le. This
action often decreases the size of an object le. The le cannot be symbolically
debugged with the Inspect debugger, but enough information remains so the object le
can be used as nld input again. This ag is often used with the -r ag.
If you specify only one input lename and both the -x and -r ags, and if you specify
the same lename again for the output le with the -o ag, you can partially strip a le
in place. The resulting le has a new nld timestamp. The resulting object le is not
necessarily smaller than the original le.
-y symbol
Identies which object les dene and use the symbol symbol. If the -verbose ag is
specied, nld writes to its output listing information to identify which object les
dene and use the specied symbol. This information can be useful if a previous nld
session produced error or warning messages about a symbol being either undened or
dened more than once.
obj_filename
Species one or more object les for the nld utility to link. This operand is required
for all ags except the -change and -strip ags.
DESCRIPTION
The nld utility links one or more TNS/R native object les to produce an executable or nonexe-
cutable native object le in a non-position-independent code (non-PIC) form, in contrast with the
ld utility. You can also modify existing executable les using nld.
You can invoke nld directly, or:
If you are creating a TNS/R native C or C++ program with non-position-independent
(nonPIC) code, you can use the c89 utility to invoke nld automatically
If you are creating a TNS/R native COBOL program with nonPIC code, you can use the
nmcobol utility to invoke nld automatically
On the command line, the lenames are the names of input object les, archives, or SRLs.
Names of ags must be followed by spaces and are not case-sensitive, except for the -l and -L
ags.
Standard Library Locations
The OSS version of nld searches for SRLs and archive les in the following standard library
locations:
The directory with the current version of the operating system image (the active
/G/system/sysnn directory)
The /lib directory
646 Hewlett-Packard Company 527188-003