diff options
| author | Geoff Rehmet <csgr@FreeBSD.org> | 1994-06-14 12:45:41 +0000 |
|---|---|---|
| committer | Geoff Rehmet <csgr@FreeBSD.org> | 1994-06-14 12:45:41 +0000 |
| commit | 86a13e77dd516b96c40d270df8376e16bd9e7ab3 (patch) | |
| tree | 02df2dea461b3b36c4fd13163c3db83a6b3fecaa /gnu | |
| parent | c4a6b5c74b1a156a01ac6984db9437f53b1a840b (diff) | |
Notes
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/usr.bin/ld/warnings.c | 11 |
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; |
