From nobody Tue May 26 17:13:55 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gPzql5P5Vz6g96Y for ; Tue, 26 May 2026 17:13:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gPzql2dStz3C69 for ; Tue, 26 May 2026 17:13:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1779815635; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=f0AWfmDowelR0kLXFBZUhz6SrzqYd6XuivEtTX2EjnM=; b=X2bIHeYjIaqPSbP6MBU/wtuzu6EcQlehffu789fC8idzcRL6OgKNCYPewsUypEGbUNAmbn BuSkIueIVqQLW9XTebxpztdDp6xYatjKDoLs5BcJ/hI8p2OwAAD5WE0bmhDFhwraVCCdRa X+I1hNEiyPkYfq5T+GIMH/q4Rhq7ZqEaaxQVFXdXD2DYi9aWpvaGMHfPjtJrVqBdtHSbch Sn3v2BmpzQzaZoofSM3gju0O7RLBsCYf9oFkjLpqcnUg6xd65sA7AcsRiLtGgwvgeAI+WH iG3x1qscbtJ+K2dkQvZyjvhESVIFi8ICuvkY9ocrPWEGxqPj3LE/+arPhyY1tQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1779815635; a=rsa-sha256; cv=none; b=XHdmAZPqvE0gsER/XBl6hDxjNERtsEj0e2QPOObRlAc3KlsceP3TfreEnfQnr1aLHuUAwn c7L4Rw286o2glF2S2Pamqc8LGwqXWmSLIDMGs6QC5XhS6NAptrgUjoWsLSN0h10Us7IZKY McKgvxumwY6fmEXNefzxVUi//bEHra5ACqdTHgvTmSXqiICa+O1v04ntxRQsgA5deBl6iB sTkwx0omIkWW9iJ60Uva2PMQSz3y0BaoFW0lor1cGnuP5Yeff+RueBkb88ScBGU+KhR9Ox iUm4fhmki4rk26PQ/ASpfaXaEBteCz0yopT5f3QzMuPCOgdBgt3KBcQA4ihrdQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1779815635; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=f0AWfmDowelR0kLXFBZUhz6SrzqYd6XuivEtTX2EjnM=; b=Lz0Oaf6l04E+HMh2u7h+oCJBbpIaGPs65CivGncW0knxpcDD4BXlrZ5ObHAlD/GToomtxz 30FmEHGOqXi3WuvGCk9znjBbEKrffDku8B0czQqOrlW1nyGJf7IMXXvUmyYxuBjLpz829F +asnAIporjf6auLMM5ubpgfGrR4jr2D+16kR+kDCfToaFRfnjhMjBXaHDCjeAlKYB3XpiZ H/g7TZv0TJfwxrZyHmI+oFgUl4ZBXFH/HGSf3UilK8s4bKPsSxffu/H9LJV/Yt9eI+w5h3 ObiWoo/zUn6u/3mhqmlftarFJa1nirP6m6DgNaFlHrp4sVzxGsYJULjrxbdfrQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gPzql1zHWz62P for ; Tue, 26 May 2026 17:13:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 39265 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 26 May 2026 17:13:55 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: e25366d46bf5 - stable/15 - nlist.3: Clarify which symbol table is used List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: e25366d46bf5cdd840d2827524f9ed29e2fcbc66 Auto-Submitted: auto-generated Date: Tue, 26 May 2026 17:13:55 +0000 Message-Id: <6a15d4d3.39265.155f615@gitrepo.freebsd.org> The branch stable/15 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=e25366d46bf5cdd840d2827524f9ed29e2fcbc66 commit e25366d46bf5cdd840d2827524f9ed29e2fcbc66 Author: Ed Maste AuthorDate: 2026-05-18 14:59:14 +0000 Commit: Ed Maste CommitDate: 2026-05-26 17:13:35 +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) --- 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 7321c1e9215c..6aefd95e3b51 100644 --- a/lib/libc/gen/nlist.3 +++ b/lib/libc/gen/nlist.3 @@ -45,9 +45,11 @@ Its use is discouraged. 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