Fix bug in sh_elf_reloc_loop
authorBernd Schmidt <bernds@redhat.co.uk>
Thu, 10 Aug 2000 10:00:56 +0000 (10:00 +0000)
committerBernd Schmidt <bernds@redhat.co.uk>
Thu, 10 Aug 2000 10:00:56 +0000 (10:00 +0000)
bfd/ChangeLog
bfd/elf32-sh.c

index 6062f601e87558602118bd3c46dced02e871ecf3..fcca6bc4c4f549d7a87d6d77adf1c3dcc9ea5b17 100644 (file)
@@ -1,3 +1,7 @@
+2000-08-10  Bernd Schmidt  <bernds@cygnus.co.uk>
+
+       * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
+
 2000-08-08  Jason Eckhardt  <jle@cygnus.com>
 
        * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
index a4954f84e2fd349b4dc8861ffc6cf84138a4e087..eb333e2f6294e271eff64116b8515e07d2e21938 100644 (file)
@@ -464,7 +464,7 @@ sh_elf_reloc_loop (r_type, input_bfd, input_section, contents, addr,
      bfd_vma start, end;
 {
   static bfd_vma last_addr;
-  asection *last_symbol_section;
+  static asection *last_symbol_section;
   bfd_byte *free_contents = NULL;
   bfd_byte *start_ptr, *ptr, *last_ptr;
   int diff, cum_diff;