mirror of
https://github.com/opnsense/src.git
synced 2026-04-25 16:18:54 -04: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:
parent
c24ee47ce0
commit
0b5e4d48b3
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue