Page MenuHomeFreeBSD

various: Fix nlist invocations
Needs ReviewPublic

Authored by des on Fri, Aug 28, 7:07 PM.
Tags
None
Referenced Files
F169124178: D59254.id.diff
Mon, Aug 31, 12:08 PM
F169089830: D59254.id185414.diff
Mon, Aug 31, 9:27 AM
F169054240: D59254.id185415.diff
Mon, Aug 31, 6:42 AM
F169039757: D59254.diff
Mon, Aug 31, 5:20 AM
Unknown Object (File)
Sat, Aug 29, 8:10 PM
Unknown Object (File)
Sat, Aug 29, 5:21 AM
Unknown Object (File)
Sat, Aug 29, 5:17 AM
Unknown Object (File)
Sat, Aug 29, 4:43 AM
Subscribers

Details

Reviewers
jhb
kib
Summary

Fix nlist(3) consumers that either expected our toolchain to prepend an
underscore to symbol names or expected nlist(3) to ignore the mismatch,
as it did until we overhauled it back in May.

While here, also fix cases where the last element in the list had an
empty string instead of NULL as sentinel.

Fixes: 4617a6cb82a6 ("nlist: Handle multiple symbol tables")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 76282
Build 73165: arc lint + arc unit

Event Timeline

des requested review of this revision.Fri, Aug 28, 7:07 PM
This revision is now accepted and ready to land.Sat, Aug 29, 3:29 AM

This is still missing usr.bin/ktrdump/ktrdump.c, tools/tools/ifpifa/ifpifa.c, and tools/tools/umastat/umastat.c from my initial list. I haven't checked for any others (and you've found a few I had missed).

usr.bin/netstat/nlist_symbols
3

Good catch

In D59254#1359587, @jhb wrote:

This is still missing usr.bin/ktrdump/ktrdump.c, tools/tools/ifpifa/ifpifa.c, and tools/tools/umastat/umastat.c from my initial list. I haven't checked for any others (and you've found a few I had missed).

I forgot to git add the first, and deliberately skipped the other two as “not my problem”.

This revision now requires review to proceed.Sat, Aug 29, 6:44 PM