From 6bb21dd35676c9bbd1f76451394a1ef91f19a37f Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 5 Aug 1996 20:28:39 +0000 Subject: [PATCH] * ldcref.c (check_nocrossref): Skip symbols with no output sections. --- ld/ldcref.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ld/ldcref.c b/ld/ldcref.c index 369cd6230bb..fb1eea8c285 100644 --- a/ld/ldcref.c +++ b/ld/ldcref.c @@ -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) -- 2.30.2