On Wed, Jan 11, 2006 at 01:58:23AM -0800, Erik Walthinsen wrote:
> There's no chance that I can both shove RAM start up and force a section 
> to a given address entirely from within a .c or .h file, is there? 
> Pretty sure the answer is a solid NO, but worth asking...

The easiest way to do this is in the linker script. e.g. taking Dave's
as a basis, modify

  .data    : AT (ADDR (.text) + SIZEOF (.text))

to

  .data  0x800068  : AT (ADDR (.text) + SIZEOF (.text))

and you've moved the vma up 8 bytes. (check with objdump -h)

There's no compile-time data that needs to go into those 8 bytes, is
there?

hth,
Erik


_______________________________________________
AVR-GCC-list mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to