Placing Functions in Data Segment

Jeffrey A Law law@cygnus.com
Thu Jun 3 19:53:00 GMT 1999


  In message <199906040114.SAA09851@cygint.cygnus.com>you write:

  > I am using ECGS 1.1.1 for 68K (provided by Object Software) and have a need
  > to place a small number of functions into the data segment. The reason 
  > being that these functions do programming of flash memory so they cannot 
  > run from flash. The data segment is copied from Flash to RAM during the 
  > startup process so this is a very convenient way of getting the code from 
  > Flash to RAM.
If you're using a modern object file format such as ELF, you may be able to
use the section attribute to force particular functions into particular
sections.  Using that feature you may be able to emit the code directly into
.data.

jeff

_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.


More information about the crossgcc mailing list