[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
Re: [avr-libc-dev] [bug #33698] Explicit use of RJMP/RCALL can cause "relocation truncated to fit: R_AVR_13_PCREL" linker error
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-
> 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
> label, perhaps indentified by the _U() macro) are potential errors, e.g.
> 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
> 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. :-(