[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] relocation truncated to fit: R_AVR_13_PCREL _asmfunc
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] relocation truncated to fit: R_AVR_13_PCREL _asmfunc |
Date: |
Wed, 7 May 2003 15:44:17 +0200 (MET DST) |
>"relocation truncated to fit: R_AVR_13_PCREL _asmfunc"
>It worked before when I was linking for at90s8535, now I am linking
>for atmega16.
Sure. On devices up to 8 KB of flash, an RJMP can reach the entire
flash address space.
>What exactly does avr-gcc mean with: "relocation truncated to fit:
>R_AVR_13_PCREL _asmfunc"?
The relocation for the jump target doesn't fit into the constraints
of the instruction (supposedly, 13 bits of relative target address).
>It obviously is something with the "rjmp" but what?
Use JMP instead of RJMP.
--
J"org Wunsch Unix support engineer
address@hidden http://www.interface-systems.de/~j/