diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2026-05-18 14:59:14 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2026-05-18 23:00:03 +0000 |
| commit | cd6bf930eafe850dc631feeaf8332832601f4225 (patch) | |
| tree | db12105408e5853c047ac61d3f23410d61f7347a | |
| parent | 9306d0449ba6fffadf08d5ab61aea596369e03f4 (diff) | |
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
| -rw-r--r-- | lib/libc/gen/nlist.3 | 8 |
1 files 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 |
