Section 4: Linker
301
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
argument. The linker accepts multiple flag letters grouped after a single hyphen
( - ) provided only the last flag can take an argument.
-E
Cause undefined symbols to be an error instead of a warning. Errors
cause the linker to exit (after completion) with a nonzero return value.
-i
file
Include (interpolate) the file
file
at the current position in the
command line or command file. Command files may be nested inside
one other.
-h
hci_file
Generate hole compression information for the linker input files listed in
the file
hci_file
. The
hci_file
is the hole compression file
created by asm68 using the asm68
-h
flag. The resultant hole
compression information is written to a file with a name created by
stripping the .hci extension (if present) from the
hci_file
and
appending .hco.
-H
hco_file
Determine if any compressed holes are too small. If any holes are
incorrectly compressed, make corrections in the
hco_file
, the hole
compression output file generated during the first linker pass in
response to the
-h
flag. If an additional assembly-linkage pass is
required (unlikely), a message is generated indicating that the
additional pass is necessary. The
-H
flag must be used on the second
hole compression linker pass and on any subsequent passes.
-l
libspc
Search for the specified library in the library directories specified by the
environment (i.e., sierra/lib) and the
-L
flag. The library name
searched for is created by prefixing
libspc
with lib and suffixing it
with .68. For example, given
-lms
the library libms.68 will be
searched for. The
-x
flag can be used to change the default .68 suffix.
-L
dir
Add the directory pathname
dir
to the library paths to be searched
when the
-l
flag is specified. The
-L
flag can be specified multiple
times.
-m
Generate a map file. The name of the map file is created by stripping
the .out extension, if present, from the output file’s name and
appending .map.
-o
outfile
Name the output file
outfile
. If the
-o
flag is not used to specify an
output filename, the name x.out is used.
-Q
Suppress the Sierra Systems copyright message. This flag must
appear before any filenames or linker directives to be effective.
-r
Build relocation information for the app.
-S
Silence all warning messages.
-u
Print usage information.
-x
ext
Set the extension for standard libraries specified with the
-l
flag to
.ext
. The extension
ext can be up to three characters long. The
default extension is .68.