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

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

[avr-gcc-list] out of range error


From: cswiger
Subject: [avr-gcc-list] out of range error
Date: Wed, 18 Feb 2004 13:25:05 -0500 (EST)

Hi All - Anyone know if this is a bug: we have some code,
a bunch of data, followed by more code. At one point everything
complies and runs fine. But by adding a little more data we
start getting link errors:

> avr-gcc -mmcu=atmega128 -g -Wl,-Map,pforth.map -Wl,-T,../lscript.x
> -Wl,--cref -Wl,-Tbss,0x801100 -Wl,-Tdata,0x808000  -o pfavr.elf
pf_core5.o
> pf_core6.o pf_clib.o pf_core.o pf_inner.o pf_io.o pf_main.o pf_text.o
> pf_words.o pfcompil.o sio.o pf_core3.o pf_core4.o pf_build.o crt0.o
-lgcc
> pf_core.o(.text+0x10e): In function `pfDoForth':
> : internal error: out of range error
> pf_inner.o(.text+0x1452): In function `pfExecuteToken':
> : internal error: out of range error
> pf_build.o(.text+0x3951): In function `pfBuildDictionary':
> : internal error: out of range error
> pf_build.o(.text+0x396b): In function `pfBuildDictionary':
> : internal error: out of range error
> pf_build.o(.text+0x396f): In function `pfBuildDictionary':
> : internal error: out of range error


and then references to functions AFTER the data are all 0, so
that "call pfBuildDictionary" resets the device. Sample addresses,
a call at 0x03a2 to 0x664a links and works fine, but same call
to 0x666d gets the above errors. Specific instruction is "call
long to a subroutine" which should work within all program
memory.

TIA HTH

--Chuck


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


reply via email to

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