Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)

User Commands (m - o) nld(1)
-export symbol_name
Species 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 specied by either its
lename or its SRL name. Searches for the symbol within the SRL are governed by the
specication for the -libvol ag, using the rules for -lib ags.
This ag cannot be specied when the -r ag is specied.
{ -l | -lib } filename
Species the name of an SRL or archive le to use to resolve external references from
the executable le being linked. The -l ag must be specied in lowercase type, and
the space after the ag and before lename is optional.
A simple name is an OSS pathname without any directory components. If lename is
not a simple name, nld searches the specied location. If lename 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
sufx .a are archive les, and les with the sufx .srl are SRLs. Simple lenames in
the Guardian le system, /G, are not modied.
nld searches for les specied with simple names in -l and -lib ags in locations
specied in each -L and -libvol ag, in the order specied to nld, before searching any
of the standard library locations. If you specify the -nostdlib ag, nld does not search
the standard library locations. See the Standard Library Locations subsection under
DESCRIPTION for details.
{ -L | -libvol } pathname
Species a pathname to search for an SRL or archive le specied by a simple
lename in an -l or -lib ag. A simple lename is an OSS pathname without any direc-
tory components. The -L ag must be specied in uppercase type, and the space after
the ag and before pathname is optional. -libvol is a synonym for -L.
nld searches for les specied with simple names in -l and -lib ags in locations
specied in each -L and -libvol ag, in the order specied to nld, before searching any
of the standard library locations. If you specify the -nostdlib ag, 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 specied in -L or -libvol ags. If you
specify the -verbose ag, nld writes to its output listing the locations where it found an
SRL or archive le.
-libname Guardian_filename
Associates a TNS/R native user library with an executable native program le. You can
associate a native user library to an executable object le but not to a relinkable object
le. The -set and -change ags can also associate a native user library with an execut-
able native program.
The value specied for Guardian_lename must use uppercase characters and cannot
be the Guardian name of an OSS le.
-nostdfiles
Species that C run-time library functions do not automatically open the standard input
and standard output les.
527188-004 Hewlett-Packard Company 643