ld Manual

Introduction to ld
ld Manual529650.001
1-3
Running ld in the Guardian Environment
Running ld in the Guardian Environment
To run ld in the Guardian environment, use this syntax:
[RUN] ld
is the TACL command to start the ld process.
command-file name
is a Guardian file name or a map DEFINE for an ld command file. ld uses
command-file name only if no file name or option arguments are
specified on the command line. Otherwise, ld ignores command-file name.
output-listing
is a Guardian file name to which ld writes its listing. The file can be type 101 (edit
file) or type 129 (spooler file).
If output-listing is a disk file name and the file does not exist, ld creates a
type 101 edit file.
If you omit the OUT option, ld writes its output to your current default output file.
file name
is a Guardian file name for a native object file. Depending on the options specified,
the file can be a linkfile or a loadfile.
option
is an ld option (a flag and its parameters, if any). 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.
If you do not specify any parameters on the command line and the standard input file is
not an edit file, ld returns syntax information.
You can specify input from the command line or use -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-1
links together the input object files named objecta and objectb to
create a loadfile named objectc.
[RUN] ld [ / IN command-file name [, OUT output-listing ] / ]
[ file name ] ... [ option ] ...
Note. file name arguments need not be specified before option arguments. Arguments
can be mixed. An item that begins with a hyphen (-) is an option; any other item is a file
name.