2009-02-15 Bjoern Haase <bjoern.m.haase@web.de>
PR 9841
* elf32-avr.c: Handle case where no local symbos exist correctly.
+2009-02-15 Bjoern Haase <bjoern.m.haase@web.de>
+
+ PR 9841
+ * elf32-avr.c: Handle case where no local symbos exist correctly.
+
2009-02-04 Eric B. Weddington <eric.weddington@atmel.com>
* elf32-avr.c (avr_final_link_relocate): Allow avr25 to wraparound.
/* Adjust the local symbols defined in this section. */
isym = (Elf_Internal_Sym *) symtab_hdr->contents;
isymend = isym + symtab_hdr->sh_info;
- for (; isym < isymend; isym++)
+ /* Fix PR 9841, there may be no local symbols. */
+ for (; isym != NULL && isym < isymend; isym++)
{
if (isym->st_shndx == sec_shndx
&& isym->st_value > addr