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
-A name[= val] Define the attribute name and optionally set it to val
-D name =[number | symbol] Define the symbol name and set it equal to number or symbol
-g Propagate debugging information into the linked image
-G sect = flags Set sect's section flags to flags
-L dir Set the library directory to dir
-l- Disable automatic inclusion of standard libraries
-l x Search library x to resolve symbols
-M [- | file ] Print linkage map to standard output or to file
-o file Write output to file
-O[level] Run optimizer at level level
-T section ,...=start[- end] Locate sections between start and end
-v Verbose mode
-V Display version information
-w Suppress warning messages
-we Treat warnings as errors