aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ld/ldcref.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ld/ldcref.c b/ld/ldcref.c
index 369cd62..fb1eea8 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)