diff options
author | peter <peter@FreeBSD.org> | 1995-11-03 18:27:18 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1995-11-03 18:27:18 +0000 |
commit | 750cc9c76631c8804a7c67da31fae5757d8b3cdf (patch) | |
tree | 8efe188079c711b0c0872014a3da4ade74edffeb /usr.bin/symorder | |
parent | c72327866cdc011dc3d23d7d839a1a296d84b9da (diff) | |
download | FreeBSD-src-750cc9c76631c8804a7c67da31fae5757d8b3cdf.zip FreeBSD-src-750cc9c76631c8804a7c67da31fae5757d8b3cdf.tar.gz |
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*. :-(
Diffstat (limited to 'usr.bin/symorder')
-rw-r--r-- | usr.bin/symorder/symorder.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); |