* ldcref.c (check_nocrossref): Skip symbols with no output
authorIan Lance Taylor <ian@airs.com>
Mon, 5 Aug 1996 20:28:39 +0000 (20:28 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 5 Aug 1996 20:28:39 +0000 (20:28 +0000)
sections.

ld/ldcref.c

index 369cd62..fb1eea8 100644 (file)
@@ -374,6 +374,8 @@ check_nocrossref (h, ignore)
     return true;
 
   defsec = hl->u.def.section->output_section;
+  if (defsec == NULL)
+    return true;
   defsecname = bfd_get_section_name (defsec->owner, defsec);
 
   for (ncrs = nocrossref_list; ncrs != NULL; ncrs = ncrs->next)