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 linkfiles named objecta and objectb to create a loadfile named
objectc.
2. The following example:
ld -dll -dllname objecta -o objectb objectc
creates a DLL named objecta as the loadfile named objectb from the linkfile named
objectc.
3. The following example:
ld obj1.o obj2.o -ul -o lib
links the linkfiles 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 linkfiles named obj3.o and obj4.o together into a loadfile 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 linkfiles test1.o and test2.o to build a loadfile named prog. Because the pro-
gram is a C program, the ccppmain.o library linkfile is required. The -obey flag 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 linkfiles named obj6.o and obj7.o into a loadfile 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 loadfile exeobj to OFF.
NOTES
OSS filenames 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.
5−46 Hewlett-Packard Company 527188-007