Discarding linker output
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2010-06-15 4:40 AM
Posted on June 15, 2010 at 13:40
Discarding linker output
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 4:54 AM
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 4:54 AM
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..
Up vote any posts that you find helpful, it shows what's working..
