- IAR Embedded Workbench for RH850 3.20.x
- IAR C/C++ Development
- Linking your application
- Linking considerations
- Interaction between ILINK and the application
Interaction between ILINK and the application
ILINK provides the command line options ‑‑config_def and ‑‑define_symbol to define symbols which can be used for controlling the application. You can also use symbols to represent the start and end of a continuous memory area that is defined in the linker configuration file. For more information, see Interaction between the tools and your application.
To change a reference to one symbol to another symbol, use the ILINK command line option ‑‑redirect. This is useful, for example, to redirect a reference from a non-implemented function to a stub function, or to choose one of several different implementations of a certain function, for example, how to choose the DLIB formatter for the standard library functions printf and scanf.
The compiler generates mangled names to represent complex C/C++ symbols. If you want to refer to these symbols from assembler source code, you must use the mangled names.
For information about the addresses and sizes of all global (statically linked) symbols, inspect the entry list in the map file (the command line option ‑‑map).
For more information, see Interaction between the tools and your application.