bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/11290] New: ld's (for avr) "internal error: out of range error"


From: purchasing at bitplantation dot com
Subject: [Bug ld/11290] New: ld's (for avr) "internal error: out of range error" message for unaligned relocations is confusing.
Date: 17 Feb 2010 09:45:58 -0000

src/bfd/elf32-avr.c in HEAD uses "bfd_reloc_outofrange" as a return code from 
avr_final_link_relocate(...) when the target address of the relocation is not 
word aligned:

    case R_AVR_7_PCREL:
      [...]

      if (srel & 1)
        return bfd_reloc_outofrange;

This results in "internal error: out of range error" being printed.

This error code implies that the target address is outside of the segment 
range, and is confusing when 
the problem is an unaligned address.

The error occurs when manually writing gas .s files and accidently having jump 
or call destinations to 
unaligned symbols.

-- 
           Summary: ld's (for avr) "internal error: out of range error"
                    message for unaligned relocations is confusing.
           Product: binutils
           Version: 2.21 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: purchasing at bitplantation dot com
                CC: bug-binutils at gnu dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=11290

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

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