[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [bug #33698] Explicit use of RJMP/RCALL can cause "reloca
From: |
Martin Nowak |
Subject: |
[avr-libc-dev] [bug #33698] Explicit use of RJMP/RCALL can cause "relocation truncated to fit: R_AVR_13_PCREL" linker error |
Date: |
Wed, 21 Jan 2015 20:51:20 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 |
Follow-up Comment #17, bug #33698 (project avr-libc):
I made a patch to hopefully fix the issue.
This adds the XCALL/XJMP macro to libm/fplib/asmdef.h and uses that instead of
explicit rcall/rjmp instructions.
The linker call still relax those instructions when possible.
Haven't yet tested the patch, but looking at the assembly output, it should
work.
(file #32896)
_______________________________________________________
Additional Item Attachment:
File name: rcall-rjmp-lto-bug33698.patch Size:36 KB
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?33698>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avr-libc-dev] [bug #33698] Explicit use of RJMP/RCALL can cause "relocation truncated to fit: R_AVR_13_PCREL" linker error,
Martin Nowak <=