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

nld(1) OSS Shell and Utilities Reference Manual
-ul Creates a native user library. Specify this flag when linking modules to create a native
user library.
When the -ul flag is specified, 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 file. This
action often decreases the size of an object file. The file cannot be symbolically
debugged with the Inspect debugger, but enough information remains so the object file
can be used as nld input again. This flag is often used with the -r flag.
If you specify only one input filename and both the -x and -r flags, and if you specify
the same filename again for the output file with the -o flag, you can partially strip a file
in place. The resulting file has a new nld timestamp. The resulting object file is not
necessarily smaller than the original file.
-y symbol
Identifies which object files define and use the symbol symbol. If the -verbose flag is
specified, nld writes to its output listing information to identify which object files
define and use the specified symbol. This information can be useful if a previous nld
session produced error or warning messages about a symbol being either undefined or
defined more than once.
obj_filename
Specifies one or more object files for the nld utility to link. This operand is required
for all flags except the -change and -strip flags.
DESCRIPTION
The nld utility links one or more TNS/R native object files to produce an executable or nonexe-
cutable native object file in a non-position-independent code (non-PIC) form, in contrast with the
ld utility. You can also modify existing executable files 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 filenames are the names of input object files, archives, or SRLs.
Names of flags must be followed by spaces and are not case-sensitive, except for the -l and -L
flags.
Standard Library Locations
The OSS version of nld searches for SRLs and archive files 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
648 Hewlett-Packard Company 527188-021