User`s guide
ELF Linker and Command Language
DSP56800E Command-Line Tools
320
Targeting MC56F83xx/DSP5685x Controllers
# search paths have global scope over the
# command line and are searched in the order
# given
-lr path # global; like '-l', but add recursive library
# search path
-l+file # cased; add a library by searching access paths
# for file named lib<file>.<ext> where <ext> is
# a typical library extension; added before
# system libraries (see '-defaults')
-[no]defaults # global; same as -[no]stdlib; default
-nofail # continue importing or disassembling after
# errors in earlier files
-[no]stdlib # global; use system library access paths
# (specified by %MWLibraries%) and add system
# libraries (specified by
%MWLibraryFiles%);
# default
-S # global; cased; disassemble and send output to
# file; do not link; implies '-nostdlib'
----------------------------------------------------------------------
ELF Linker Options
----------------------------------------------------------------------
-[no]dead[strip] # enable dead-stripping of unused code; default
-force_active # specify a list of symbols as undefined; useful
symbol[,...] # to force linking of static libraries
#
-keep[local] on|off # keep local symbols (such as relocations and
# output segment names) generated during link;
# default is on
-m[ain] symbol # set main entry point for application or shared
# library; use '-main ""' to specify no entry
# point; for 'symbol', maximum length 63 chars;
# default is 'FSTART_'
-map [keyword[,...]] # generate link map file
closure # calculate symbol closures
unused # list unused symbols
#
-sortbyaddr # sort S-records by address; implies '-srec'
-srec # generate an S-record file; ignored when
# generating static libraries
-sreceol keyword # set end-of-line separator for S-record file;
# implies '-srec'
mac # Macintosh ('\r')
dos # DOS ('\r\n'); default