From 750cc9c76631c8804a7c67da31fae5757d8b3cdf Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 3 Nov 1995 18:27:18 +0000 Subject: 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(-) (limited to 'usr.bin') diff --git a/usr.bin/symorder/symorder.c b/usr.bin/symorder/symorder.c index 4a1b79f..2cac53c 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); -- cgit v1.1