git: 136053f7db82 - main - elf.5: Add description of .ctors and .dtors
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 26 May 2025 20:50:30 UTC
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=136053f7db824b72ede67b40b0e7a393f6686a8c
commit 136053f7db824b72ede67b40b0e7a393f6686a8c
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2025-05-26 19:05:25 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
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