bugAVR C Runtime Library - Bugs: bug #3184, XCALL resolved incorrectly in...

 
 

bug #3184: XCALL resolved incorrectly in avr5/libc.a

Submitted by:  Joerg Wunsch <joerg_wunsch>
Submitted on:  Thu 10 Apr 2003 08:13:49 PM UTC  
 
Category: LibrarySeverity: 4 - Important
Priority: 7 - HighItem Group: None
Status: FixedPercent Complete: 0%
Assigned to: NoneOpen/Closed: Closed
Release: NoneFixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 12 Apr 2003 02:48:33 PM UTC, comment #2:

This patch has been applied and committed.

Thank you for the contribution.

Marek Michalkiewicz <marekm>
Project Administrator
Fri 11 Apr 2003 09:55:02 AM UTC, comment #1:

common/macros.inc should use "#if _AVR_MEGA_" instead
of "#if FLASHEND > 0x2000" - the latter is only defined for
specific devices (like -mmcu=atmega128), not for -mmcu=avr5.

Marek Michalkiewicz <marekm>
Project Administrator
Thu 10 Apr 2003 08:13:49 PM UTC, original submission:

In a larger ATmega128 project,
the original submitter of this bug (in AVRfreaks) suddenly
got:

itoa.o(.text+0x20): relocation truncated to fit: R_AVR_13_PCREL __udivmodhi4

This corresponds with

XCALL _U(__udivmodhi4); quotient in r23:r22, remainder in r25:r24
; clobbered: r0, r21, r26, r27
; call-used but preserved: r18, r19, r20, r30, r31
subi r24, 0xd0 ; + '0'

in libc/misc/itoa.S. XCALL is supposed to be an absolute
call for the avr5 target, but extracting itoa.o from
avr5/libc.a, and disassembling it reveals that it has
been assembled as an rcall.

Other functions migh probably be affected as well.

Joerg Wunsch <joerg_wunsch>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 12 Apr 2003 02:48:33 PM UTCmarekmStatusNone=>(Error - Not Found)
  Open/ClosedOpen=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1