git: world: drop the a.out underscore from nlist(3) names
Aaron LI
aly at crater.dragonflybsd.org
Sun Nov 8 05:52:50 PST 2026
commit cf7ecf1279c376feea253d30ee3673b3b1449f38
Author: Antonio Huete Jimenez <tuxillo at quantumachine.net>
Date: Sat Nov 7 14:03:21 2026 +0100
world: drop the a.out underscore from nlist(3) names
Since 49479ff7b7 ("nlist(3): Sync with FreeBSD") nlist(3) matches
symbol names exactly and no longer treats "_foo" as "foo". When
reading a kernel image, kvm_nlist() passes the names to __fdnlist()
unchanged, so every consumer still asking for a.out-style "_foo" names
stopped working on crash dumps: kgdb finds no threads ("No
registers"), and ps, fstat, vmstat, pstat, dmesg, netstat, ipcs and
nfsstat fail with -M/-N. Live kernels were not affected, because the
kldsym(2) path of kvm_nlist() strips one leading underscore.
Follow FreeBSD and fix the consumers rather than bring the underscore
matching back. This is the counterpart of FreeBSD cdfc673811ac
("various: Fix nlist invocations").
In addition, drop the underscore from VRS_SYM in kvm.h (nothing in base
uses it).
See-also: https://www.mail-archive.com/dev-commits-src-all@freebsd.org/msg90959.html
(Re: git: 4617a6cb82a6 - main - nlist: Handle multiple symbol tables)
Derived-from: FreeBSD (commit cdfc673811ac)
Bug: https://bugs.dragonflybsd.org/issues/3463
Summary of changes:
gnu/usr.bin/gdb/kgdb/kthr.c | 10 ++++----
lib/libkcore/kcore_file.c | 4 ++--
lib/libkcore/kcore_sched.c | 8 +++----
lib/libkcore/kcore_tty.c | 4 ++--
lib/libkcore/kcore_vfs.c | 2 +-
lib/libkvm/kvm.h | 2 +-
lib/libkvm/kvm_file.c | 2 +-
lib/libkvm/kvm_getloadavg.c | 4 ++--
lib/libkvm/kvm_getswapinfo.c | 8 +++----
lib/libkvm/kvm_proc.c | 6 ++---
sbin/ccdconfig/ccdconfig.c | 4 ++--
sbin/dmesg/dmesg.c | 2 +-
test/debug/bufqueues.c | 6 ++---
test/debug/h2chains.c | 4 ++--
test/debug/h2dio.c | 4 ++--
test/debug/h2inodes.c | 4 ++--
test/debug/kmapinfo.c | 2 +-
test/debug/ksyscalls.c | 2 +-
test/debug/mbufinfo.c | 2 +-
test/debug/ncptrace.c | 4 ++--
test/debug/psinfo.c | 2 +-
test/debug/schedmon.c | 4 ++--
test/debug/slabinfo.c | 4 ++--
test/debug/vmobjinfo.c | 6 ++---
test/debug/vmpagehash.c | 10 ++++----
test/debug/vmpageinfo.c | 16 ++++++-------
test/debug/vmpagequeues.c | 6 ++---
test/debug/vmpqinactive.c | 16 ++++++-------
test/debug/vnodeinfo.c | 6 ++---
test/debug/wildcardinfo.c | 4 ++--
test/debug/zallocinfo.c | 4 ++--
tools/diag/dumpvfscache/dumpvfscache.c | 4 ++--
usr.bin/ipcs/ipcs.c | 12 +++++-----
usr.bin/ktrdump/ktrdump.c | 14 +++++------
usr.bin/netstat/main.c | 44 +++++++++++++++++-----------------
usr.bin/netstat/netgraph.c | 2 +-
usr.bin/nfsstat/nfsstat.c | 2 +-
usr.bin/pctrack/pctrack.c | 6 ++---
usr.bin/systat/main.c | 4 ++--
usr.bin/systat/vmstat.c | 14 +++++------
usr.bin/vmstat/vmstat.c | 22 ++++++++---------
usr.sbin/ifmcstat/ifmcstat.c | 2 +-
usr.sbin/pstat/pstat.c | 16 ++++++-------
usr.sbin/trpt/trpt.c | 4 ++--
44 files changed, 154 insertions(+), 154 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cf7ecf1279c376feea253d30ee3673b3b1449f38
--
DragonFly BSD source repository
More information about the Commits
mailing list