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

User Commands (m - o) nld(1)
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 files named objecta and objectb to create an executable
file named objectc.
2. The following example:
nld obj1.o obj2.o -ul -o lib
links the object files 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 files 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 files test1.o and test2.o to build a program named prog. Because the
program is a C program, the crtlmain.o library object file is required. The -obey flag
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 files 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 file exeobj to OFF.
NOTES
Some NLD options are not available as command flags 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 filenames intended for use with nld should not begin with an equals (=) character. The
equals character is reserved for use with MAP DEFINEs.
527188-021 Hewlett-Packard Company 649