It's probably easier if you get your patches from WinAVR CVS... Eric
> -----Original Message----- > From: > [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > org] On Behalf Of Ruud Vlaming > Sent: Monday, October 20, 2008 1:21 PM > To: avr-gcc-list@nongnu.org > 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 > > AVR-GCC-list@nongnu.org > > http://lists.nongnu.org/mailman/listinfo/avr-gcc-list > > > > > _______________________________________________ > AVR-GCC-list mailing list > AVR-GCC-list@nongnu.org > http://lists.nongnu.org/mailman/listinfo/avr-gcc-list > _______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list