2010-06-15 04:40 AM
Discarding linker output
2011-05-17 04:54 AM
The addresses are fixed. Include a file with the addresses as #define or equ. Linker knows nothing about the use or non use of your high flash addresses.
2011-05-17 04:54 AM
Problem is GCC is not a native embedded tool chain.
With the RealView linker it is possible to provide a SYMDEF symbol definition file (.DEF) with the entry points for ROM based subroutines, and addresses for constants/tables. http://www.keil.com/support/man/docs/armlink/armlink_cchgjjac.htm http://www.keil.com/support/man/docs/armlink/armlink_chddhjig.htm I might reasonable guess that one could also create an object file (.OBJ) or library (.LIB) containing ABSOLUTE addresses associated with specific symbols, and then link against that. Edit: This thread seems to be on point http://gcc.gnu.org/ml/gcc-help/2006-08/msg00295.html Looks like you can either create a .S file, or add them to the linker script.