summaryrefslogtreecommitdiff
path: root/sys/dev/microcode/siop
diff options
context:
space:
mode:
authorbouyer <bouyer@NetBSD.org>2000-10-09 15:57:56 +0000
committerbouyer <bouyer@NetBSD.org>2000-10-09 15:57:56 +0000
commit64c818a7e2e86b2e66ece1d67a5479abc7d781c6 (patch)
tree5744075defebaa643521bdb7c401d407ad364200 /sys/dev/microcode/siop
parent890345ee052660a232721fe356e44d5f1f54ff4b (diff)
Emit a warning when a symbol is undefined.
Diffstat (limited to 'sys/dev/microcode/siop')
-rw-r--r--sys/dev/microcode/siop/ncr53cxxx.c9
1 files changed, 7 insertions, 2 deletions
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)