ld Manual

Introduction to ld
ld Manual529650.001
1-4
Running ld in the OSS Environment
Example 1-2 changes the HIGHPIN attribute in the loadfile exeobj to OFF, causing
the loadfile to run at LOWPIN only.
Running ld in the OSS Environment
To run ld in the OSS environment, use this syntax:
option
is an ld option (a flag and its parameters, if any). A flag begins with a hyphen (-).
You must include a space between a flag and its parameters except after the -l
and -L flags. Case is not significant when specifying ld options except for the -l
and -L flags. For descriptions of ld flags and their parameters, see Section 2, ld
Options.
file name
is an OSS file name for a TNS/R native object file. ld supports /E OSS directories.
Depending on the flags specified, the object file can be a linkfile or a loadfile.
You can specify input from the command line or use the option -fl or -obey, which
allows the contents of a file to be entered in the command input at the point specified.
Use the -obey option to supply several options or input file names.
Example 1-3 combines object files named objecta, objectb, and objectc and
creates a loadfile named objectd.
Example 1-4 links the object files named obj1.o and obj2.o together into a user
library named lib.
Example 1-1. Creating a Loadfile (Guardian)
ld objecta objectb -o objectc
Example 1-2. Changing the HIGHPIN Attribute (Guardian)
ld -change highpin off exeobj
ld [ option ] ... file name
Example 1-3. Creating a Loadfile (OSS)
ld objecta objectb objectc -o objectd
Example 1-4. Creating a User Library (OSS)
ld obj1.o obj2.o -ul -o lib