Back out previous work-around for "vmstat -i" failing on ELF
kernels. A better fix is now committed to "src/lib/libc/gen/nlist.c" and "src/usr.sbin/kvm_mkdb/nlist.c".
This commit is contained in:
parent
a150a878d5
commit
b5e7d1133b
@ -909,7 +909,7 @@ kread(nlx, addr, size)
|
||||
{
|
||||
char *sym;
|
||||
|
||||
if (namelist[nlx].n_value == 0) {
|
||||
if (namelist[nlx].n_type == 0 || namelist[nlx].n_value == 0) {
|
||||
sym = namelist[nlx].n_name;
|
||||
if (*sym == '_')
|
||||
++sym;
|
||||
|
Loading…
Reference in New Issue
Block a user