Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)
User Commands (m - o) nld(1)
-export symbol_name
Specifies that the named symbol is exported by the SRL being created.
-import symbol_name { filename | =srlname }
Tells nld to import the named unresolved symbol from the SRL specified by either its
filename or its SRL name. Searches for the symbol within the SRL are governed by the
specification for the -libvol flag, using the rules for -lib flags.
This flag cannot be specified when the -r flag is specified.
{ -l | -lib } filename
Specifies the name of an SRL or archive file to use to resolve external references from
the executable file being linked. The -l flag must be specified in lowercase type, and
the space after the flag and before filename is optional.
A simple name is an OSS pathname without any directory components. If filename is
not a simple name, nld searches the specified location. If filename is a simple name,
nld adds the string lib to the beginning of the name. It also adds either .a or .srl to the
end of the name, depending on whether -bdynamic or -bstatic is set. Files with the
suffix .a are archive files, and files with the suffix .srl are SRLs. Simple filenames in
the Guardian file system, /G, are not modified.
nld searches for files specified with simple names in -l and -lib flags in locations
specified in each -L and -libvol flag, in the order specified to nld, before searching any
of the standard library locations. If you specify the -nostdlib flag, nld does not search
the standard library locations. See the Standard Library Locations subsection under
DESCRIPTION for details.
{ -L | -libvol } pathname
Specifies a pathname to search for an SRL or archive file specified by a simple
filename in an -l or -lib flag. A simple filename is an OSS pathname without any direc-
tory components. The -L flag must be specified in uppercase type, and the space after
the flag and before pathname is optional. -libvol is a synonym for -L.
nld searches for files specified with simple names in -l and -lib flags in locations
specified in each -L and -libvol flag, in the order specified to nld, before searching any
of the standard library locations. If you specify the -nostdlib flag, nld does not search
the standard library locations. See the Standard Library Locations subsection under
DESCRIPTION for details.
nld does not verify the names of locations specified in -L or -libvol flags. If you
specify the -verbose flag, nld writes to its output listing the locations where it found an
SRL or archive file.
-libname Guardian_filename
Associates a TNS/R native user library with an executable native program file. You can
associate a native user library to an executable object file but not to a relinkable object
file. The -set and -change flags can also associate a native user library with an execut-
able native program.
The value specified for Guardian_filename must use uppercase characters and cannot
be the Guardian name of an OSS file.
-nostdfiles
Specifies that C run-time library functions do not automatically open the standard input
and standard output files.
527188-004 Hewlett-Packard Company 6−43