avr-libc-dev
[Top][All Lists]
Advanced

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

Re: [avr-libc-dev] [bug #33698] Explicit use of RJMP/RCALL can cause "re


From: Weddington, Eric
Subject: Re: [avr-libc-dev] [bug #33698] Explicit use of RJMP/RCALL can cause "relocation truncated to fit: R_AVR_13_PCREL" linker error
Date: Tue, 27 Sep 2011 11:28:19 -0600


> -----Original Message-----
> From: Jan Waclawek [mailto:address@hidden
> Sent: Tuesday, September 27, 2011 8:30 AM
> To: Jan Waclawek; Georg-Johann Lay; Weddington, Eric; avr-libc-
> address@hidden
> Subject: [bug #33698] Explicit use of RJMP/RCALL can cause "relocation
> truncated to fit: R_AVR_13_PCREL" linker error
> 
> Follow-up Comment #4, bug #33698 (project avr-libc):
> 
> It appears to me that most of those 135 places (those which rcall to
> external
> label, perhaps indentified by the _U() macro) are potential errors, e.g.
> http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=108109
> and
> many more.
> 
> But changing them to "regular" jumps, and then using -relax if minimal
> code is
> desired, should be an acceptable solution.
> 
> I'd say this has been already discussed, see
> http://lists.gnu.org/archive/html/avr-gcc-list/2011-06/msg00025.html and
> other
> posts of that thread.

Thanks for the discussion memory refresh! 

I agree, then, they all need to get fixed. I had forgotten about 
-ffunction-sections, which then the user could rearrange at will in a custom 
linker script, which could then easily fail. :-(



reply via email to

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