AVR C Runtime Library - Bugs: bug #33698, Explicit use of RJMP/RCALL can...
You are not allowed to post comments on this tracker with your current authentication level.
bug #33698: Explicit use of RJMP/RCALL can cause "relocation truncated to fit: R_AVR_13_PCREL" linker error
Submitter: | Georg-Johann Lay <gjlayde> | ||
Submitted: | Sat 02 Jul 2011 10:12:32 PM UTC | ||
Category: | Library | Severity: | 4 - Important |
Priority: | 9 - Immediate | Item Group: | Unknown |
Status: | Fixed | Percent Complete: | 0% |
Assigned to: | None | Open/Closed: | Open |
Release: | 1.7.1 | Fixed Release: | None |
( Jump to the original submission )
Thu 09 Apr 2015 08:14:11 AM UTC, comment #23: |
Pitchumani <pitchumani>![]() |
Wed 08 Apr 2015 11:38:17 AM UTC, comment #22: @Martin, Changes for ctype.S is not complete.
|
Pitchumani <pitchumani>![]() |
Wed 08 Apr 2015 09:46:57 AM UTC, comment #21: Ran gcc regression tests with avrtest simulator (atmega1280 and atxmega128a3). No new fails/ errors found. |
Pitchumani <pitchumani>![]() |
Fri 27 Mar 2015 05:27:29 PM UTC, comment #20: Updated the patch to also fix ctype.S.
|
Martin Nowak <dawg> |
Fri 27 Mar 2015 05:00:29 PM UTC, comment #19: Forgive my ignorance, but would this address the seemingly related error:
I've got two big projects on the atmega2560 and they are both experiencing this. The common thread is that they both use extensive use of PROGMEM to store strings. |
Ryan Neve <never> |
Fri 06 Mar 2015 01:59:08 PM UTC, comment #18: Martin Nowak's patch to replace rjmp/rcall instruction looks fine to me.
|
Pitchumani <pitchumani>![]() |
Wed 21 Jan 2015 08:51:20 PM UTC, comment #17: I made a patch to hopefully fix the issue.
|
Martin Nowak <dawg> |
Tue 21 Jan 2014 11:36:11 AM UTC, comment #16: What's the state of this? It seems to cause trouble when using LTO (-flto).
|
Martin Nowak <dawg> |
Sun 03 Feb 2013 04:17:20 PM UTC, comment #15: FYI, if the compiler is configured with --with-avrlibc, it will omit functions from libgcc that are known to be provided by libm.a.
|
Georg-Johann Lay <gjlayde> |
Fri 16 Nov 2012 06:29:21 PM UTC, comment #14: Gentlemen, a solution to this issue needs to be found and implemented.
|
Eric Weddington <arcanum>![]() |
Sun 05 Aug 2012 05:05:53 PM UTC, comment #13: More modules are:
and maybe even more.
|
Georg-Johann Lay <gjlayde> |
Sun 05 Aug 2012 04:53:18 PM UTC, comment #12: ./libm/fplib/fp_rempio2.S is also affected, see
|
Georg-Johann Lay <gjlayde> |
Sun 19 Feb 2012 10:06:05 AM UTC, comment #11: Dmitry Xmelkov:
|
Georg-Johann Lay <gjlayde> |
Sun 19 Feb 2012 06:12:05 AM UTC, comment #10: The math library is not designed to use float routines from
|
Dmitry Xmelkov <dmix>![]() |
Fri 17 Feb 2012 02:33:23 PM UTC, comment #9:
|
Georg-Johann Lay <gjlayde> |
Thu 16 Feb 2012 01:47:37 PM UTC, comment #8: Hi Johann
|
Vidya Praveen <childbear> |
Thu 16 Feb 2012 11:10:09 AM UTC, comment #7:
|
Georg-Johann Lay <gjlayde> |
Wed 15 Feb 2012 06:48:08 AM UTC, comment #6: IMO, I think the cleaner solution is to:
|
Vidya Praveen <childbear> |
Tue 27 Sep 2011 05:54:45 PM UTC, comment #5:
|
Georg-Johann Lay <gjlayde> |
Tue 27 Sep 2011 02:29:57 PM UTC, comment #4: 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.
|
Jan Waclawek <wek> |
Mon 26 Sep 2011 10:36:54 PM UTC, comment #3: There's 135 places where 'rcall' is used just in libm/fplib/*.S. I don't think that all of these are in error...
|
Eric Weddington <arcanum>![]() |
Mon 26 Sep 2011 07:01:25 PM UTC, comment #2: Hi Eric,
|
Georg-Johann Lay <gjlayde> |
Mon 26 Sep 2011 03:51:15 PM UTC, comment #1: Hi Johann,
|
Eric Weddington <arcanum>![]() |
Sat 02 Jul 2011 10:12:32 PM UTC, original submission:
Some assembler source files in avr-libc contain explicit RJMP/RCALL instructions even for devices > 8KiB. It's by no means obvious that offsets to jump/call targets are in the range of RJMP/RCALL.
|
Georg-Johann Lay <gjlayde> |
Depends on the following items: None found
Items that depend on this one: None found
Follow 11 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2015-04-09 | pitchumani | Status | Ready For Test | ![]() |
Fixed |
2015-04-08 | pitchumani | Attached File | - | ![]() |
Added rjmp-ctype.patch, #33593 |
2015-03-27 | dawg | Attached File | - | ![]() |
Added rcall-rjmp-lto-bug33698.patch, #33469 |
2015-03-06 | pitchumani | Attached File | - | ![]() |
Added bug33698.lcf, #33260 |
Severity | 3 - Normal | ![]() |
4 - Important | ||
Status | Need Info | ![]() |
Ready For Test | ||
2015-03-06 | pitchumani | Attached File | - | ![]() |
Added bug33698.c, #33259 |
2015-01-21 | dawg | Attached File | - | ![]() |
Added rcall-rjmp-lto-bug33698.patch, #32896 |
2012-11-16 | arcanum | Priority | 5 - Normal | ![]() |
9 - Immediate |
2012-08-06 | demiurg_spb | Attached File | - | ![]() |
Added bug_confirmation.txt, #26323 |
2011-09-26 | arcanum | Status | None | ![]() |
Need Info |
Committed.
http://svn.savannah.nongnu.org/viewvc?view=rev&root=avr-libc&revision=2473