Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 May 2026 17:16:56 +0000
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 50832522ecc0 - stable/14 - nlist.3: Clarify which symbol table is used
Message-ID:  <6a15d588.39aa5.3507a2f7@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/14 has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=50832522ecc039e8bf2f9167b261391276e6e027

commit 50832522ecc039e8bf2f9167b261391276e6e027
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: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


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a15d588.39aa5.3507a2f7>