SPRU513Y August 2001 – June 2022 SM320F28335-EP
Symbol mapping allows a symbol reference to be resolved by a symbol with a different name, which allows functions to be overridden with alternate definitions. This can be used to patch in alternate implementations to provide patches (bug fixes) or alternate functionality. The syntax for the --symbol_map option is:
--symbol_map= refname=defname
For example, the following code makes the linker resolve any references to foo by the definition foo_patch:
--symbol_map='foo=foo_patch'
The --symbol_map option is supported even if --opt_level=4 was used when compiling.