The branch stable/14 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=50832522ecc039e8bf2f9167b261391276e6e027
commit 50832522ecc039e8bf2f9167b261391276e6e027 Author: Ed Maste <[email protected]> AuthorDate: 2026-05-18 14:59:14 +0000 Commit: Ed Maste <[email protected]> CommitDate: 2026-05-26 17:16:28 +0000 nlist.3: Clarify which symbol table is used nlist() requires section headers, and currently fetches symbol names only from SHT_SYMTAB, Reviewed by: kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57065 (cherry picked from commit cd6bf930eafe850dc631feeaf8332832601f4225) (cherry picked from commit e25366d46bf5cdd840d2827524f9ed29e2fcbc66) --- lib/libc/gen/nlist.3 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/libc/gen/nlist.3 b/lib/libc/gen/nlist.3 index 876af0ab6bc1..e549843c5581 100644 --- a/lib/libc/gen/nlist.3 +++ b/lib/libc/gen/nlist.3 @@ -41,9 +41,11 @@ The .Fn nlist function -retrieves name list entries from the symbol table of an -executable file (see -.Xr elf 5 ) . +retrieves name list entries from the +.Xr elf 5 +section with type +.Dv SHT_SYMTAB +in an ELF object (for example, an executable file or shared library). The argument .Fa \&nl is set to reference the
