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: Ruud Vlaming
Subject: Re: [avr-gcc-list] $DATA_ORIGIN in binutils-2.18
Date: Mon, 20 Oct 2008 21:21:24 +0200
User-agent: KMail/1.9.1

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/avr-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
> 




reply via email to

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