Skip to main content
daviddavid92
Associate II
June 15, 2010
Question

Discarding linker output

  • June 15, 2010
  • 2 replies
  • 663 views
Posted on June 15, 2010 at 13:40

Discarding linker output

    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    May 17, 2011
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    picguy2
    Associate III
    May 17, 2011
    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.