avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] [patch #3912] Fix ctype.S linker error due to asm branche


From: Stefano Fedrigo
Subject: [avr-libc-dev] [patch #3912] Fix ctype.S linker error due to asm branches out of range
Date: Fri, 15 Apr 2005 11:53:25 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050324 Firefox/1.0.2

URL:
  <http://savannah.nongnu.org/patch/?func=detailitem&item_id=3912>

                 Summary: Fix ctype.S linker error due to asm branches out of
range
                 Project: AVR C Runtime Library
            Submitted by: aleph
            Submitted on: Fri 04/15/2005 at 11:53
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open

    _______________________________________________________

Details:

ctype.S contains several separately compiled functions that branch to
__cty_isfalse and __cty_istrue. The compiled functions end up in the same
linker section but if several functions are compiled and linked together the
section gets too large and the __cty_isfalse branch is too far for BRNE,
BRGE, etc instructions (+/- 64 words).
In that case linker complains with a relocation truncated error.

The attached patch change all branches with RJMP calls, that have a range
greater than the whole ctype.S code (+/- 2 Kwords).
 



    _______________________________________________________

Carbon-Copy List:

CC Address                          | Comment
------------------------------------+-----------------------------
address@hidden             | Fix ctype.S linker error due to asm
branches out of range



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 04/15/2005 at 11:53  Name: ctype_rel.patch  Size: 5.69KB   By:
aleph
ctype.S patch
<http://savannah.nongnu.org/patch/download.php?item_id=3912&item_file_id=4460>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?func=detailitem&item_id=3912>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]