From nobody Mon May 26 20:50:30 2025 X-Original-To: dev-commits-src-main@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 4b5nw75ZGQz5wpT3; Mon, 26 May 2025 20:50:31 +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 4b5nw73xLSz3rPh; Mon, 26 May 2025 20:50:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1748292631; 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=viAPN/ykHt//4RI9HcnD4OixpSw5+vOP6aibn6IgLjg=; b=hGkJ/ulu8nNJ1KJAQfIn+7aKV5+CB9wnJ5+S7ER2lZh/LL3b8KEA1rdoFcfO4jd+orsQYd IwoWLLFUPWJy0iw+NV784POMhWiAHPoX79wXikZ3x/VxUyw7i8+aMzqjLYoDi9QmKv3flg 5fm80UKqSRPcSnQC9UrLfvcq9aDHOkhTST4zMkKOuiNAWkZqSqmDD29JVzWFTSlh3F19+t HxxLuHX8kUT+OsfOrGNhBsMCN7kyIoFW7Q1WxRxfoKQP9Ku/T05jU7hg3cfjZ7TC9mLsQL z5rFtRoINOuWFnWcrfKVZ5uNTFCLhu6JBkXSw9yl8+SzbMRvxoLxikjaVQso8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1748292631; 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=viAPN/ykHt//4RI9HcnD4OixpSw5+vOP6aibn6IgLjg=; b=aOZL2NEGu7BZ4k0VbPS0hmQxAXotkhQCCIHmzWsDUSESnDCUVUXUKw0jDMLiH19lr48cpY AkWz0gLLTfjSFQEJji0SH/g4g2FHO9UmKSeSNOlE3LRWIxQSoBHVXY5DntqsoDiZFSFTHa cCSfSOCBwe+y9PJGunsipTpHHzo4XqHRAelSZz/yse1PCVTZhtUPlzr7HuNeKtZ/na/xrr nRIl44misvac152ggUA2NGIHDoQxjyb6X35LhAUQqSGBFp6MsxgrUXRFuxLETJGsiCA0Gl sdaCPy6pZ8QpNik6eIQbJSU9QpuHjqSm/VfoXsAbS+EGCNMIESce5U9XfELiKg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1748292631; a=rsa-sha256; cv=none; b=bzHNrMirKLvCHkI1REOO47TpBZQpcvmu3G85rDSmAyga7TWaO3UdwFS+0wj2EVQ42wfbGS FonFD2mL6P0Jf7kl20NPPTlDU/SJ9nvMp6JM5L0uu7DlKIU085NdW9uN2URPT1ZxgR+bmt T+B8kSlJme6orbmQgOgSctLCVaJTAWlJgiG/k4U5Pn/LWbg6sm4Nz2VmYoW66f3ffThtyQ Jyv5W+GPD8aTYQDPaUadgJ03QHRaQMw/5/3k//tFeH9ZN2W6v2rcQMu+6FO6/vFyTGn5MW UP2lHBA/H38TislJpXv4upXYomEd8MFfelRrcnH92SanDuXK7+RPS5n2RAaGXA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4b5nw70bX6z74F; Mon, 26 May 2025 20:50:31 +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 54QKoUq4036386; Mon, 26 May 2025 20:50:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 54QKoUtu036383; Mon, 26 May 2025 20:50:30 GMT (envelope-from git) Date: Mon, 26 May 2025 20:50:30 GMT Message-Id: <202505262050.54QKoUtu036383@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 136053f7db82 - main - elf.5: Add description of .ctors and .dtors List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 136053f7db824b72ede67b40b0e7a393f6686a8c Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=136053f7db824b72ede67b40b0e7a393f6686a8c commit 136053f7db824b72ede67b40b0e7a393f6686a8c Author: Ed Maste AuthorDate: 2025-05-26 19:05:25 +0000 Commit: Ed Maste CommitDate: 2025-05-26 20:50:21 +0000 elf.5: Add description of .ctors and .dtors Reviewed by: kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D50536 --- share/man/man5/elf.5 | 16 +++++++++++++++- share/man/man5/src.conf.5 | 2 +- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/share/man/man5/elf.5 b/share/man/man5/elf.5 index 5f1aad2298c0..d89a917bd96f 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 diff --git a/share/man/man5/src.conf.5 b/share/man/man5/src.conf.5 index ba88b995e51d..d52f0a170203 100644 --- a/share/man/man5/src.conf.5 +++ b/share/man/man5/src.conf.5 @@ -1,5 +1,5 @@ .\" DO NOT EDIT-- this file is @generated by tools/build/options/makeman. -.Dd May 9, 2025 +.Dd May 26, 2025 .Dt SRC.CONF 5 .Os .Sh NAME