avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Fixed, external function "pointers"


From: Erik Christiansen
Subject: Re: [avr-gcc-list] Fixed, external function "pointers"
Date: Thu, 12 Jan 2006 13:12:59 +1100
User-agent: Mutt/1.5.6+20040722i

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]