summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@redhat.co.uk>2000-08-10 10:00:56 +0000
committerBernd Schmidt <bernds@redhat.co.uk>2000-08-10 10:00:56 +0000
commitaacc86b42e3f4eca1d42b3f474026b10e1ac668d (patch)
tree9a6a986f9ccda77c53c13f9b1ebc82c3ae6deebc /bfd
parentf35c60f02fc3c8532692e287895c655340012d54 (diff)
downloadgdb-aacc86b42e3f4eca1d42b3f474026b10e1ac668d.tar.gz
Fix bug in sh_elf_reloc_loop
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/elf32-sh.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 6062f601e87..fcca6bc4c4f 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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.
diff --git a/bfd/elf32-sh.c b/bfd/elf32-sh.c
index a4954f84e2f..eb333e2f629 100644
--- a/bfd/elf32-sh.c
+++ b/bfd/elf32-sh.c
@@ -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;