|Non-Confidential||PDF version||ARM DUI0474M|
|Home > Accessing and Managing Symbols with armlink > Region-related symbols > Methods of importing linker-defined symbols in C and C++|
You can import linker-defined symbols into your C or C++ source code. They are external symbols and you must take the address of them.
The only case where the
& operator is
not required is when the array declaration is used, for example
extern char symbol_name;.
The following examples show how to obtain the correct value:
extern unsigned int Image$$ER_ZI$$Limit; config.heap_base = (unsigned int) &Image$$ER_ZI$$Limit;
extern unsigned int Image$$ER_ZI$$Length; extern char Image$$ER_ZI$$Base; memset(Image$$ER_ZI$$Base,0,(unsigned int)&Image$$ER_ZI$$Length);