Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 May 2026 17:16:55 +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: fea07b76a0bc - stable/14 - nlist.3: Replace a.out(5) Xref with elf(5)
Message-ID:  <6a15d587.39c23.7c30a163@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=fea07b76a0bc602e087e318de1720cc19477e2ca

commit fea07b76a0bc602e087e318de1720cc19477e2ca
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2026-05-18 14:50:22 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-05-26 17:16:27 +0000

    nlist.3: Replace a.out(5) Xref with elf(5)
    
    ELF support was added to nlist() in 1997, and a.out support was removed
    in 2020.  The man page was not updated for either of these changes.
    
    Fixes: 77909f597881 ("Initial elf nlist support, ...")
    Fixes: 86cfa7e70b2b ("nlist: retire long-obsolete aout support")
    Sponsored by: The FreeBSD Foundation
    
    (cherry picked from commit 876a17321c896427d70de94101df4d888a19189b)
    
    struct nlist is documented in both a.out(5) and stab(5), so add an Xref
    to the latter.
    
    (cherry picked from commit 762e451b318c8cbfddbcaaa92a218e8b45306eb9)
    (cherry picked from commit 9d9651c49575e27f2873c10bb7fe855be29ff48a)
---
 lib/libc/gen/nlist.3 | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/lib/libc/gen/nlist.3 b/lib/libc/gen/nlist.3
index ef5b8d95282e..876af0ab6bc1 100644
--- a/lib/libc/gen/nlist.3
+++ b/lib/libc/gen/nlist.3
@@ -25,9 +25,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.\"     @(#)nlist.3	8.3 (Berkeley) 4/19/94
-.\"
-.Dd April 19, 1994
+.Dd May 18, 2026
 .Dt NLIST 3
 .Os
 .Sh NAME
@@ -45,7 +43,7 @@ The
 function
 retrieves name list entries from the symbol table of an
 executable file (see
-.Xr a.out 5 ) .
+.Xr elf 5 ) .
 The argument
 .Fa \&nl
 is set to reference the
@@ -68,7 +66,8 @@ if the file
 .Fa filename
 does not exist or is not executable, the returned value is \-1.
 .Sh SEE ALSO
-.Xr elf 5
+.Xr elf 5 ,
+.Xr stab 5
 .Sh HISTORY
 A
 .Fn nlist


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a15d587.39c23.7c30a163>