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. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils