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

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

[avr-gcc-list] what means error: relocation truncated to fit


From: Klaus Rudolph
Subject: [avr-gcc-list] what means error: relocation truncated to fit
Date: Mon, 29 Jul 2002 14:01:06 +0200 (MEST)

Hi all,

I have a project which compiles fine with at90s8515 settings and run
into trouble by using atmega128.

I got the following message in link stage:
avr-gcc -O2 -Wall -g -mmcu=atmega128  data2.o test.o key.o lcd.o helper.o
edit.o key_tab.o mymalloc.o serial.o scheduler.o menu.o ass.o -o test.out  
ass.o: In function `AdrClear':
ass.o(.text+0x8): relocation truncated to fit: R_AVR_13_PCREL WriteString
make: *** [test.srec] Error 1

ass.o is a assembler file which uses a call to a c-function as follows:
#define KADR_CLEAR 0x01

.global AdrClear
AdrClear:
    ldi r18, KADR_CLEAR|0x80        ; ADR_CLEAR direkt! 
    in r24, SPL                     ;Adresse des Stack uebergeben
    in r25, SPH        
    push r18                        ;auf den Stack
    rcall WriteString
    pop r18             ; nur Stackpointer gerade ziehen! 
    ret




I use the following compiler/linker/libs:
libc 20020620
avr-gcc (GCC) 3.2 20020628 (experimental)GNU ld version 020626 20020626

I was not able to reconstruct this problem by a hand full of instructions
in c and ass files in a smaler project. So I think that it makes no sence
to send you all my source files.

Have you any idea where I can search for a solution first? Because I can't
reconstruct the same error in an smaller project this seems to be a memory
size problem, but mega has much more space for code and data? 

Any ideas?
Thanks
    Klaus


-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

avr-gcc-list at http://avr1.org



reply via email to

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