[committed] VAX/BFD: Correct assertion

Maciej W. Rozycki macro@linux-mips.org
Sun Oct 25 01:48:00 GMT 2009


Hello,

 Committed as obvious -- probably a copy&paste bug from the statement 
immediately above, which is:

if (splt == NULL)
  {
    splt = bfd_get_section_by_name (dynobj, ".plt");
    BFD_ASSERT (splt != NULL);
  }

2009-10-25  Maciej W. Rozycki  <macro@linux-mips.org>
 
	* elf32-vax.c (elf_vax_relocate_section): Correct assertion.

  Maciej
 
Index: bfd/elf32-vax.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-vax.c,v
retrieving revision 1.58
diff -u -p -r1.58 elf32-vax.c
--- bfd/elf32-vax.c	25 Oct 2009 01:27:56 -0000	1.58
+++ bfd/elf32-vax.c	25 Oct 2009 01:42:37 -0000
@@ -1583,7 +1583,7 @@ elf_vax_relocate_section (bfd *output_bf
 	  if (sgotplt == NULL)
 	    {
 	      sgotplt = bfd_get_section_by_name (dynobj, ".got.plt");
-	      BFD_ASSERT (splt != NULL);
+	      BFD_ASSERT (sgotplt != NULL);
 	    }
 
 	  plt_index = h->plt.offset / PLT_ENTRY_SIZE - 1;



More information about the Binutils mailing list