aboutsummaryrefslogtreecommitdiff
path: root/ld/ldcref.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-08-05 20:28:39 +0000
committerIan Lance Taylor <ian@airs.com>1996-08-05 20:28:39 +0000
commit6bb21dd35676c9bbd1f76451394a1ef91f19a37f (patch)
treead3f4a5708426be23dc0ac80aedce17e7fc4f9ac /ld/ldcref.c
parent3d7b0c499b7b8af449243ff22c7a43b34e1bbfe2 (diff)
downloadgdb-6bb21dd35676c9bbd1f76451394a1ef91f19a37f.zip
gdb-6bb21dd35676c9bbd1f76451394a1ef91f19a37f.tar.gz
gdb-6bb21dd35676c9bbd1f76451394a1ef91f19a37f.tar.bz2
* ldcref.c (check_nocrossref): Skip symbols with no output
sections.
Diffstat (limited to 'ld/ldcref.c')
-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)