From 64c818a7e2e86b2e66ece1d67a5479abc7d781c6 Mon Sep 17 00:00:00 2001 From: bouyer Date: Mon, 9 Oct 2000 15:57:56 +0000 Subject: Emit a warning when a symbol is undefined. --- sys/dev/microcode/siop/ncr53cxxx.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'sys/dev/microcode') diff --git a/sys/dev/microcode/siop/ncr53cxxx.c b/sys/dev/microcode/siop/ncr53cxxx.c index 10519645e63..67f7fea8b65 100644 --- a/sys/dev/microcode/siop/ncr53cxxx.c +++ b/sys/dev/microcode/siop/ncr53cxxx.c @@ -1,4 +1,4 @@ -/* $NetBSD: ncr53cxxx.c,v 1.2 2000/04/25 16:01:16 bouyer Exp $ */ +/* $NetBSD: ncr53cxxx.c,v 1.3 2000/10/09 15:57:56 bouyer Exp $ */ /* * Copyright (c) 1995,1999 Michael L. Hitch @@ -415,7 +415,7 @@ main (int argc, char *argv[]) if (outfp) { time_t cur_time; - fprintf(outfp, "/*\t$NetBSD: ncr53cxxx.c,v 1.2 2000/04/25 16:01:16 bouyer Exp $\t*/\n"); + fprintf(outfp, "/*\t$NetBSD: ncr53cxxx.c,v 1.3 2000/10/09 15:57:56 bouyer Exp $\t*/\n"); fprintf(outfp, "/*\n"); fprintf(outfp, " *\tDO NOT EDIT - this file is automatically generated.\n"); time(&cur_time); @@ -492,6 +492,11 @@ void emit_symbols () for (i = 0; i < nsymbols; ++i) { char *code; + if ((symbols[i].flags & F_DEFINED) == 0 && + symbols[i].type != S_EXTERNAL) { + fprintf(stderr, "warning: symbol %s undefined\n", + symbols[i].name); + } if (symbols[i].type == S_ABSOLUTE) code = "A_"; else if (symbols[i].type == S_RELATIVE) -- cgit