git: cd6bf930eafe - main - nlist.3: Clarify which symbol table is used
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 18 May 2026 23:00:10 UTC
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=cd6bf930eafe850dc631feeaf8332832601f4225
commit cd6bf930eafe850dc631feeaf8332832601f4225
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2026-05-18 14:59:14 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-05-18 23:00:03 +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
---
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 4df349eed52e..d6029153de5a 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