You invoke the linker using the following syntax:

hld [ option | file ]...

##### Files

file is either an object file or library file to include in the link and it must be in CrossWorks object or library format.

##### Options

option is a command-line option. Options are case sensitive and cannot be abbreviated. The linker supports the following command line options:

Option | Description
-Aname[=val] | Define the attribute name and optionally set it to val
-Dname=[number | symbol] | Define the symbol name and set it equal to number or symbol
-Gsect=flags | Set sect's section flags to flags
-Ldir | Set the library directory to dir
-l- | Disable automatic inclusion of standard libraries
-lx | Search library x to resolve symbols
-M | Write linkage map to standard output
-o file | Write output to file
-O[level] | Run optimizer at level level
-Tsection,...=start[-end] | Locate sections between start and end
-v | Verbose mode
-V | Display version information
-w | Suppress warning messages
-we | Treat warnings as errors