From 0b5e4d48b388cea01b1723dfd4e1ffc1f2c13536 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Fri, 3 Nov 1995 18:27:18 +0000 Subject: [PATCH] Repair the detection of undefined symbols that my last "quick fix" commit broke. It's much easier to debug the symbol export lists in lkm makefiles if you know what your errors are during the build process. :-) Bleah.. symorder.c is *horrible*. :-( --- usr.bin/symorder/symorder.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.bin/symorder/symorder.c b/usr.bin/symorder/symorder.c index 4a1b79f9967..2cac53c2e74 100644 --- a/usr.bin/symorder/symorder.c +++ b/usr.bin/symorder/symorder.c @@ -196,7 +196,7 @@ main(argc, argv) free((void *)symtab); symtab = newtab; } else { - symfound = symkept = i; + symkept = i; } newstrings = malloc(strtabsize); @@ -211,7 +211,8 @@ main(argc, argv) continue; if (clean && !savesymb(symp)) symp->n_type &= ~N_EXT; - } + } else if (clean) + symfound++; symp->n_un.n_strx -= sizeof(int); (void)strcpy(t, &strings[symp->n_un.n_strx]); symp->n_un.n_strx = (t - newstrings) + sizeof(int);