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*. :-(
This commit is contained in:
Peter Wemm 1995-11-03 18:27:18 +00:00
parent c24ee47ce0
commit 0b5e4d48b3

View file

@ -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);