From nobody Tue May 26 17:16:56 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 4gPzvF1PgYz6g960 for ; Tue, 26 May 2026 17:16:57 +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 4gPzvD636bz3DXr for ; Tue, 26 May 2026 17:16:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1779815816; 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=AedIYRqJXoFHwzoRrcLEcyJxqaEDNg0oatP6XwPiYEg=; b=vR2xqFu7RcdPumHjadUDR5pjbW+mGrLYtKxj1vbbhRkN2ZYhwG2ksWwA8CnqGfTTONJ4o+ b2GklrsiZvdenkVScX5O++rhXifVre95ldQAsPJBKh6rYzQzJOgJnzKy2E7oP6ng/S+tSr I6xkHPwZHhcV583aRMDc9tl6dshDTVYahZkjcKUCWE1s+r+oxgRwu6wio83wzEAZGUulmG 65IdscXAlEAe2AMZpSQI++Zdqm1c2pUBeISB/v9/aOvjfgE/Dw4ILJcEDox8PuEx0+jslq Lz0W6Lz1i8YgQ8xUB39hNZzQ+drr2meAXNGIJGBBI3nT00/GAw461q1mX5v9lA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1779815816; a=rsa-sha256; cv=none; b=goIiSGvETwMyXZ2IdUrA/fUBoZiHMuJtJeiVUckU1TP5+kCrM58X8Zpju4yZgRJ8qe53kM ujKyuwzVsD/dx6brOyFQr9AN7eHJbJShpn1HMvhJo6GrytoZr6dRvK27EomdiZKKRoW9Hk FP14xJELtL4kudpvE1LKe7NwqrqpwrlIf01HxgJqCm4qD/wogqjbWNWqjlmo3RdpVUk2f+ gT1Ts5DgK8BBzM4R9L8M/ecppEqYNSBp5E4xXHR2Jdv28hflk3XMXFOBtXV/xOl7FPk6yb UA8A7qkxHwfnZgurPFALK4FQblVw1rI2nzI8qeViEPu1xemJjQaZFWCQM96MAg== 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=1779815816; 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=AedIYRqJXoFHwzoRrcLEcyJxqaEDNg0oatP6XwPiYEg=; b=Z6CetzX4CpTpqihHK3F1WccNt5oqvXTKb76yBeGeZxvqBhsQRfEeHNMjiZj8ibI8NMLSip QDTfE2UzbZJbXNNcutMKZFlpmxP7ps560Kc4Uj7BWC4sLe9k/vGKhX5KISbNIOrhZO51ex yBb6N2ube8XBr+5D7pUqwrOo/71OK6kPIzLxlQGt6X4GHPmEsXFm0GwFd5wtF1McoDg+5e H5hzZT8tdM/zw7Fy5tKAcSFNBbsEj6fEQqUxgJwMWdxCXlnOXct88R85Le3xEFs5zXoj4W Pr6wB2JPlJoPmh+zQ/MBtieagXY/9zjHZuAYThJUBGiIvmcSZ/AWJu7ojmEhAA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gPzvD5XZ2z560 for ; Tue, 26 May 2026 17:16:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 39aa5 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 26 May 2026 17:16:56 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 50832522ecc0 - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: 50832522ecc039e8bf2f9167b261391276e6e027 Auto-Submitted: auto-generated Date: Tue, 26 May 2026 17:16:56 +0000 Message-Id: <6a15d588.39aa5.3507a2f7@gitrepo.freebsd.org> The branch stable/14 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=50832522ecc039e8bf2f9167b261391276e6e027 commit 50832522ecc039e8bf2f9167b261391276e6e027 Author: Ed Maste AuthorDate: 2026-05-18 14:59:14 +0000 Commit: Ed Maste 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