aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/ld/warnings.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/gnu/usr.bin/ld/warnings.c b/gnu/usr.bin/ld/warnings.c
index d98516aa0b7bc..aec223645fe03 100644
--- a/gnu/usr.bin/ld/warnings.c
+++ b/gnu/usr.bin/ld/warnings.c
@@ -1,5 +1,5 @@
/*
- * $Id: warnings.c,v 1.5 1994/01/12 23:14:07 jkh Exp $
+ * $Id: warnings.c,v 1.6 1994/02/13 20:41:48 jkh Exp $
*/
#include <sys/param.h>
@@ -621,6 +621,15 @@ do_file_warnings (entry, outfile)
g = entry->symbols[i].symbol;
s = &entry->symbols[i].nzlist.nlist;
+ /*
+ * XXX This is a temporary fence to correct an
+ * incorrect assumption made in the case of symbols
+ * which do not have entries in the (global)
+ * symbol table.
+ */
+ if(g == NULL)
+ continue;
+
if (!(s->n_type & N_EXT))
continue;