2007-07-26 Michael Snyder <msnyder@access-company.com>
authorMichael Snyder <msnyder@vmware.com>
Fri, 27 Jul 2007 01:15:27 +0000 (01:15 +0000)
committerMichael Snyder <msnyder@vmware.com>
Fri, 27 Jul 2007 01:15:27 +0000 (01:15 +0000)
* coff-i386.c (coff_i386_rtype_to_howto): Guard against null.

bfd/ChangeLog
bfd/coff-i386.c

index 2cf4d1f93d1e367dfe4b33354e0595143f664e80..31f0087e1596c2f586afb4b5b60c4c8dae7e9901 100644 (file)
@@ -1,4 +1,6 @@
-2007-07-26  Michael Snyder  <msnyder@svkmacdonelllnx>
+2007-07-26  Michael Snyder  <msnyder@access-company.com>
+
+       * coff-i386.c (coff_i386_rtype_to_howto): Guard against null.
 
        * linker.c (bfd_section_already_linked_table_insert): Change 
        return type from void to boolean.  Return FALSE on failure.
index 47c041d3c0c1f88caa3ba18619adac510069c2d9..e5c6a6b6bd3866e6fdbcc56eb08d65ba35689390 100644 (file)
@@ -518,7 +518,8 @@ coff_i386_rtype_to_howto (abfd, sec, rel, h, sym, addendp)
       *addendp -= pe_data(sec->output_section->owner)->pe_opthdr.ImageBase;
     }
 
-  if (rel->r_type == R_SECREL32)
+  BFD_ASSERT (sym != NULL);
+  if (rel->r_type == R_SECREL32 && sym != NULL)
     {
       bfd_vma osect_vma;