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: E. Weddington
Subject: Re: [avr-gcc-list] RE: internal error: out of range error (Erik Christiansen)
Date: Thu, 09 Sep 2004 12:16:50 -0600
User-agent: Mozilla Thunderbird 0.7.3 (Windows/20040803)

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.

Eric



reply via email to

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