]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
/bfd:
authorEric B. Weddington <eric.weddington@atmel.com>
Thu, 19 Feb 2009 17:53:10 +0000 (17:53 +0000)
committerEric B. Weddington <eric.weddington@atmel.com>
Thu, 19 Feb 2009 17:53:10 +0000 (17:53 +0000)
2009-02-15  Bjoern Haase  <bjoern.m.haase@web.de>

PR 9841
* elf32-avr.c: Handle case where no local symbos exist correctly.

bfd/ChangeLog
bfd/elf32-avr.c

index 47e70c45e3c89675dfb6694e3bdf31a3f91cbfc4..e925156ea8446c451ef4cecaa8aa28d5d8f0b487 100644 (file)
@@ -1,3 +1,8 @@
+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.
index afcef18aa30726c14297e649b71988d3c9a216a1..27cb38b8644ea93bf336ab0f2eab691aeff798f7 100644 (file)
@@ -1554,7 +1554,8 @@ elf32_avr_relax_delete_bytes (bfd *abfd,
   /* 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