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

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

RE: [avr-gcc-list] $DATA_ORIGIN in binutils-2.18


From: Weddington, Eric
Subject: RE: [avr-gcc-list] $DATA_ORIGIN in binutils-2.18
Date: Mon, 20 Oct 2008 13:26:48 -0600

It's probably easier if you get your patches from WinAVR CVS...

Eric 

> -----Original Message-----
> From: 
> address@hidden 
> [mailto:address@hidden
> org] On Behalf Of Ruud Vlaming
> Sent: Monday, October 20, 2008 1:21 PM
> To: address@hidden
> Subject: Re: [avr-gcc-list] $DATA_ORIGIN in binutils-2.18
> 
> OK, i understand now what the problem was.
> If you first apply the data-origin patch, this all
> works well. However, that patch was not included
> in the original script in avr-freaks.
>   build-avr-gcc-4.2.2-libc-1.6.2-makeinfo-fixed.tar.gz
> Well whatever ...
> 
> greetings
> Ruud.
> 
> 
> On Monday 20 October 2008 10:45, Ruud Vlaming wrote:
> > Just to let you know, binutils-2.18/ld/scripttempl/avr.sc reads
> > [ http://ftp.gnu.org/gnu/binutils/binutils-2.18.tar.bz2 ]
> > 
> > MEMORY
> > {
> >   text   (rx)   : ORIGIN = 0, LENGTH = $TEXT_LENGTH
> >   data   (rw!x) : ORIGIN = 0x800060, LENGTH = $DATA_LENGTH
> >   eeprom (rw!x) : ORIGIN = 0x810000, LENGTH = 64K
> > }
> > 
> > So the patch-newsections from Joerg Wunsch cannot be applied
> > [ 
> http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/ports/devel/a
> vr-binutils/files/patch-newsections ]
> > 
> >  MEMORY
> >  {
> > -  text   (rx)   : ORIGIN = 0, LENGTH = $TEXT_LENGTH
> > -  data   (rw!x) : ORIGIN = $DATA_ORIGIN, LENGTH = $DATA_LENGTH
> > -  eeprom (rw!x) : ORIGIN = 0x810000, LENGTH = 64K
> > +  text      (rx)   : ORIGIN = 0, LENGTH = $TEXT_LENGTH
> > +  data      (rw!x) : ORIGIN = $DATA_ORIGIN, LENGTH = $DATA_LENGTH
> > +  eeprom    (rw!x) : ORIGIN = 0x810000, LENGTH = 64K
> > +  fuse      (rw!x) : ORIGIN = 0x820000, LENGTH = 1K
> > +  lock      (rw!x) : ORIGIN = 0x830000, LENGTH = 1K
> > +  signature (rw!x) : ORIGIN = 0x840000, LENGTH = 1K
> >  }
> > 
> > Now it seems to me that the data line in avr.sc is incorrect
> > for there are a number of devices that have the whole first
> > page devoted to i/o. So it would be best i guess to change
> > the patch to match the line
> >   data   (rw!x) : ORIGIN = 0x800060, LENGTH = $DATA_LENGTH
> > 
> > 
> > Ruud.
> > 
> > 
> > 
> > _______________________________________________
> > AVR-GCC-list mailing list
> > address@hidden
> > http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
> > 
> 
> 
> _______________________________________________
> AVR-GCC-list mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
> 




reply via email to

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