git: e25366d46bf5 - stable/15 - nlist.3: Clarify which symbol table is used
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 26 May 2026 17:13:55 UTC
The branch stable/15 has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=e25366d46bf5cdd840d2827524f9ed29e2fcbc66
commit e25366d46bf5cdd840d2827524f9ed29e2fcbc66
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2026-05-18 14:59:14 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-05-26 17:13:35 +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)
---
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 7321c1e9215c..6aefd95e3b51 100644
--- a/lib/libc/gen/nlist.3
+++ b/lib/libc/gen/nlist.3
@@ -45,9 +45,11 @@ Its use is discouraged.
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