This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Patch for elf32-sh.c
- To: binutils at sources dot redhat dot com
- Subject: Patch for elf32-sh.c
- From: Bernd Schmidt <bernds at cygnus dot co dot uk>
- Date: Wed, 9 Aug 2000 10:47:16 +0100 (BST)
This patch corrects a bug in sh_elf_reloc_loop. A value is saved by
a function for the next time it is called, but the variable used for saving
it isn't static.
OK to commit?
Bernd
* elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
Index: bfd/elf32-sh.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-sh.c,v
retrieving revision 1.12
diff -c -p -r1.12 elf32-sh.c
*** elf32-sh.c 2000/08/03 09:30:50 1.12
--- elf32-sh.c 2000/08/09 09:41:09
*************** sh_elf_reloc_loop (r_type, input_bfd, in
*** 464,470 ****
bfd_vma start, end;
{
static bfd_vma last_addr;
! asection *last_symbol_section;
bfd_byte *free_contents = NULL;
bfd_byte *start_ptr, *ptr, *last_ptr;
int diff, cum_diff;
--- 464,470 ----
bfd_vma start, end;
{
static bfd_vma last_addr;
! static asection *last_symbol_section;
bfd_byte *free_contents = NULL;
bfd_byte *start_ptr, *ptr, *last_ptr;
int diff, cum_diff;