[Top][All Lists]

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

[avr-gcc-list] relocation truncated to fit: R_AVR_13_PCREL _asmfunc

From: Mattias Svensson
Subject: [avr-gcc-list] relocation truncated to fit: R_AVR_13_PCREL _asmfunc
Date: Wed, 07 May 2003 14:10:19 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1

I get an error message from avr-gcc:

"relocation truncated to fit: R_AVR_13_PCREL _asmfunc"

Where _asmfunc is an assembler function in a precompiled library which I have defined as:

"extern inline void asmfunc(void) { asm("\trjmp     _asmfunc\n"); }"

in a .h file.

The error occurs in the final linking stage where my application objects get linked with the library object.

It worked before when I was linking for at90s8535, now I am linking for atmega16.

What exactly does avr-gcc mean with: "relocation truncated to fit: R_AVR_13_PCREL _asmfunc"?
It obviously is something with the "rjmp" but what?

Mattias S

reply via email to

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