From nobody Tue Jun 17 19:01:37 2025 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 4bMGSL0Nwqz5VpLZ; Tue, 17 Jun 2025 19:01:38 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bMGSK682sz3plh; Tue, 17 Jun 2025 19:01:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750186897; 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=4NkhrSEHKLG/lXUZ+T2nluiS5Fmr57dEkfDzxDgfNFo=; b=wJX6Piz68+QhiJqDV8hD72yRxu/NKWeg9VvHKtBGDike6uyWL4Sl2JZ6GHOoz+LdbgxURE h8Fl3zDBf8S52uqJreWYeSNUwl/Phg0lK/2BGNQUQ4Fy/SPi6f1cYvUjAO0W/CUfuJYfaF Hu1LBxoNR7JuLfw5Ymllt8APsXqYfELuaIj0lKUWLNazgGh01PHTCnhO2XJFXyGgrNgfxL HictW1ZrwO4A8SXHATdcwbCYsOS2Bg/bSxO5zgkmFYIwSdoDrxx8ofoFkUXpeRABGuluXH cq9rvk8RswrOESHx1ZKqndc1y5i2JXO1sNn5kgYBhrJZb9rU18UXskwyvwDk2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750186897; 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=4NkhrSEHKLG/lXUZ+T2nluiS5Fmr57dEkfDzxDgfNFo=; b=PNVb2eQErs+R6cCGW5oQgc7G4DMviZDSA5LbQcQzwSksv1kMHnaPd5cVsHNux+m1CCpT6O v+Lo88l6SCFo/Wu0JFkd2xPtAvJ9FmJlt4gcOQqIpXYk9cfMbeuAm0uKLL4rhLEnjcwJol mRgn16dtnkk5rkYpLHqLfIsm+XRZIQULk1o0YE2NU2EOu4D6FLJ5G+tj9iHvp4yxZqfKAW 1YWibxHDKOuNfdEPszvavxzXVkAvGHi3DioC0397Y9ya1R9Wanw8If/RwY8ul5GrlsBi9M aU6jndowRAU/gaAQ75K7cNbQxH0ecdfTZpunRSIgwOEl4GJOGmlL2iND+RaXBQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1750186897; a=rsa-sha256; cv=none; b=mMu4KF5HsEu6BCb9JARqA6ru53gF5ALINgLFc++jkueiJzwxMNE4RWrC/gUmJTGH3aM+DA 6vtaxtLbvWZFRpGBH44JFETJPyGQi35avR+HthtN4n0cpLW1VF4JWQ1a/Tj1M+rhpaNjAt InUCryEgEeNTJxaPcRD5/snpnFX/vpIXHwSxTcskP/T7viOYsFK6He0Iim0gBefIxZFCDj KmJm9mTl7VWNqA1AuSVnN2DwLLfdR8m9r/P8li3AXS5XG/OHu5vSX3RkV7yQfkna6Q/d3x osnh7V3W0G6OyCatxEDF/oyAyJhr/BsOe9WmSpcxeMmUm1KZo7gstcPUEgYeLg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4bMGSK5jM3zwrJ; Tue, 17 Jun 2025 19:01:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 55HJ1bpM012939; Tue, 17 Jun 2025 19:01:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 55HJ1bWg012936; Tue, 17 Jun 2025 19:01:37 GMT (envelope-from git) Date: Tue, 17 Jun 2025 19:01:37 GMT Message-Id: <202506171901.55HJ1bWg012936@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 056cf3be3464 - stable/14 - elf.5: Add description of .ctors and .dtors 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 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: 056cf3be3464589c73a9c6683cd6e9cf5afff8dc Auto-Submitted: auto-generated The branch stable/14 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=056cf3be3464589c73a9c6683cd6e9cf5afff8dc commit 056cf3be3464589c73a9c6683cd6e9cf5afff8dc Author: Ed Maste AuthorDate: 2025-05-26 19:05:25 +0000 Commit: Ed Maste CommitDate: 2025-06-17 19:01:18 +0000 elf.5: Add description of .ctors and .dtors Reviewed by: kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D50536 (cherry picked from commit 136053f7db824b72ede67b40b0e7a393f6686a8c) --- share/man/man5/elf.5 | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/share/man/man5/elf.5 b/share/man/man5/elf.5 index bda2020b2d5d..fac51adeea7c 100644 --- a/share/man/man5/elf.5 +++ b/share/man/man5/elf.5 @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd May 24, 2025 +.Dd May 26, 2025 .Dt ELF 5 .Os .Sh NAME @@ -864,6 +864,13 @@ This section holds version control information. This section is of type .Sy SHT_PROGBITS . No attribute types are used. +.It .ctors +This legacy section holds pointers to initialization routines, +executed before calling the main program entry point. +This section is of type +.Sy SHT_PROGBITS . +The attributes used are +.Sy SHF_ALLOC . .It .data This section holds initialized data that contribute to the program's memory image. @@ -889,6 +896,13 @@ are unspecified. This section is of type .Sy SHT_PROGBITS . No attribute types are used. +.It .dtors +This legacy section holds pointers to finalization routines, +executed when the program exits normally. +This section is of type +.Sy SHT_PROGBITS . +The attributes used are +.Sy SHF_ALLOC . .It .dynamic This section holds dynamic linking information. The section's attributes