[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Trouble with: relocation truncated tofit:R_AVR_13_PCR
From: |
Boyapati, Anitha |
Subject: |
Re: [avr-gcc-list] Trouble with: relocation truncated tofit:R_AVR_13_PCREL |
Date: |
Thu, 16 Jun 2011 14:17:24 +0800 |
>-----Original Message-----
>From: address@hidden
>[mailto:address@hidden On
>Behalf Of Joerg Wunsch
>Sent: Thursday, June 16, 2011 11:30 AM
>To: address@hidden
>Subject: Re: [avr-gcc-list] Trouble with: relocation truncated
>tofit:R_AVR_13_PCREL
>
>"Boyapati, Anitha" <address@hidden> wrote:
>
>> 1. Why can't rcall/rjmp be used against external symbols?
>
>They can, and they (usually) do.
>
>> If the value falls outside the legal range, linker relaxation can
>> handle it.
>
>No. Linker relaxations can only work the other way: replace longer
>jumps/calls by smaller ones.
Hmm, interesting.
> The "relocation truncated to fit"
>message means required information has been lost (because it doesn't
>fit into the target address field), so the error is already fatal at
>that point.
Point taken. I missed this. Thanks
Anitha