> -----Original Message----- > From: Jan Waclawek [mailto:invalid.nore...@gnu.org] > Sent: Tuesday, September 27, 2011 8:30 AM > To: Jan Waclawek; Georg-Johann Lay; Weddington, Eric; avr-libc- > d...@nongnu.org > 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. :-( _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-libc-dev