git: 762e451b318c - main - nlist.3: Add stab(5) Xref

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Tue, 19 May 2026 00:16:37 UTC
The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=762e451b318c8cbfddbcaaa92a218e8b45306eb9

commit 762e451b318c8cbfddbcaaa92a218e8b45306eb9
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2026-05-19 00:11:39 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-05-19 00:16:13 +0000

    nlist.3: Add stab(5) Xref
    
    Commit 876a17321c89 removed the a.out Xref as nlist(3) no longer
    supports a.out, but this left nlist(3) without a reference to a page
    documenting struct nlist.
    
    struct nlist is documented in both a.out(5) and stab(5), so add an Xref
    to the latter.
    
    Reported by:    brooks
    Fixes: 876a17321c89 ("nlist.3: Replace a.out(5) Xref with elf(5)")
---
 lib/libc/gen/nlist.3 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/libc/gen/nlist.3 b/lib/libc/gen/nlist.3
index 9e2aa0d7eb0f..6aefd95e3b51 100644
--- a/lib/libc/gen/nlist.3
+++ b/lib/libc/gen/nlist.3
@@ -72,7 +72,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