1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-05 18:05:16 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=12039

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