Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

nld(1) OSS Shell and Utilities Reference Manual
The /usr/lib directory
The /usr/local/lib directory
The value of the COMP_ROOT environment variable is added to the beginning of /lib, /usr/lib,
and /usr/local/lib. By default, the value of COMP_ROOT is null in the OSS environment.
For More Information
nld is not an interactive tool like Binder. For more information on using nld and details on map-
ping Binder commands to nld commands, refer to the nld and noft Manual.
EXAMPLES
1. The following example:
nld objecta objectb -o objectc
links together the input object les named objecta and objectb to create an executable
le named objectc.
2. The following example:
nld obj1.o obj2.o -ul -o lib
links the object les named obj1.o and obj2.o together into a user library named lib.
3. The following example:
nld obj3.o obj4.o -o prog -libname \$A.B.C
links object les named obj3.o and obj4.o together into a program named prog and runs
it as a user library with the Guardian name $A.B.C. The backslash (\) is necessary to
prevent the shell from misinterpreting the dollar sign ($).
4. The following example:
nld /usr/lib/crtlmain.o test1.o test2.o \
-obey /usr/lib/libc.obey -o prog
links the C object les test1.o and test2.o to build a program named prog. Because the
program is a C program, the crtlmain.o library object le is required. The -obey ag
directs nld to link in all the required SRLs.
5. The following example:
nld obj6.o obj7.o -o prog -set systype guardian
links the object les named obj6.o and obj7.o into a program named prog that you
intend to run as a Guardian process.
6. The following example:
nld -change highpin off exeobj
changes the value of the HIGHPIN attribute in the executable object le exeobj to OFF.
NOTES
Some NLD options are not available as command ags in the OSS environment. For example,
specifying the -NS_extent_size or -NS_max_extents ag for the nld command on an OSS shell
command line causes an error.
OSS lenames intended for use with nld should not begin with an equals (=) character. The
equals character is reserved for use with MAP DEFINEs.
648 Hewlett-Packard Company 527188-007