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

ld(1) OSS Shell and Utilities Reference Manual
For More Information
ld is not an interactive tool like Binder. For more information on using ld, see the ld Manual.
For more informaiton on run-time library use, see the rld Manual.
EXAMPLES
1. The following example:
ld objecta objectb -o objectc
links together the input linkles named objecta and objectb to create a loadle named
objectc.
2. The following example:
ld -dll -dllname objecta -o objectb objectc
creates a DLL named objecta as the loadle named objectb from the linkle named
objectc.
3. The following example:
ld obj1.o obj2.o -ul -o lib
links the linkles named obj1.o and obj2.o together into a user library named lib.
4. The following example:
ld obj3.o obj4.o -o prog -libname \$A.B.C
links linkles named obj3.o and obj4.o together into a loadle named prog. When prog
runs, it has a user library with the Guardian name $A.B.C. The backslash (\) prevents the
shell from misinterpreting the dollar sign ($).
5. The following example:
ld /usr/lib/ccppmain.o test1.o test2.o \
-obey /usr/lib/libc.obey -o prog
links the C linkles test1.o and test2.o to build a loadle named prog. Because the pro-
gram is a C program, the ccppmain.o library linkle is required. The -obey ag directs
ld to link in all the required hybrid SRLs.
6. The following example:
ld obj6.o obj7.o -o prog -set systype guardian
links the linkles named obj6.o and obj7.o into a loadle named prog that you intend to
run as a Guardian process.
7. The following example:
ld -change highpin off exeobj
changes the value of the HIGHPIN attribute in the loadle exeobj to OFF.
NOTES
OSS lenames intended for use with ld should not begin with an equals (=) character. The
equals character is reserved for use with MAP DEFINEs.
EXIT VALUES
The ld command returns one of the following values:
0 (zero) No errors or warning conditions were detected.
546 Hewlett-Packard Company 527188-007