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

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

Re: [avr-gcc-list] RE: internal error: out of range error (Erik Christia


From: Theodore A. Roth
Subject: Re: [avr-gcc-list] RE: internal error: out of range error (Erik Christiansen)
Date: Thu, 9 Sep 2004 11:25:43 -0700 (PDT)

On Thu, 9 Sep 2004, E. Weddington wrote:

> Dafni & Robert Berger wrote:
>
> >This also didn't work, but both hints inspired me to the following:
> >
> >I went back to my initial suspicious line of code:
> >
> >const char      max7219_C_VER[] PROGMEM = "@(#) $Id: max7219.c,v 0.0
> >2004/01/25 18:58:09Dafni Exp $";
> >
> >In the linker script for the library *.xr I added the . = ALIGN(2); and
> >that's it.
> >
> >  /* Internal text space or external memory */
> >  .text :
> >  {
> >    *(.vectors)
> >    *(.progmem.gcc*)
> >    *(.progmem*)
> >    . = ALIGN(2);
> >    *(.init0)  /* Start here after reset.  */
> >    *(.init1)
> >
> >  ...
> >  }
> >
> >
> >It does not seem to be necessary to add it to .text and .text.* as well,
> >since all the other stuff is
> >obviously generated properly.
> >
> >    *(.text)
> >    . = ALIGN(2);
> >    *(.text.*)
> >    . = ALIGN(2);
> >
> >So the solution is so simple.
> >
> >BTW the standard linker scripts, which come with winavr should be corrected
> >as well IMHO.
> >
> >
> >
>
> The linker scripts come from avr-libc. Please submit a bug report to the
> avr-libc project.

No, the linker scripts come from binutils.

The avrN.x scripts have the correct ALIGN(2) parts and would not show
this error if used.

Robert, why are you using the *.xr scripts instead of the *.x versions?

>
> Eric
>
>
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://www.avr1.org/mailman/listinfo/avr-gcc-list
>
>

---
Ted Roth
PGP Key ID: 0x18F846E9
Jabber ID: address@hidden


reply via email to

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