cancel
Showing results for 
Search instead for 
Did you mean: 

Discarding linker output

daviddavid92
Associate II
Posted on June 15, 2010 at 13:40

Discarding linker output

2 REPLIES 2
picguy2
Associate II
Posted on May 17, 2011 at 13:54

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.

Posted on May 17, 2011 at 13:54

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..