elf.5: Add description of .ctors and .dtors

Reviewed by:	kib
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50536
This commit is contained in:
Ed Maste
2025-05-26 15:05:25 -04:00
parent 79537a90dc
commit 136053f7db
2 changed files with 16 additions and 2 deletions
+15 -1
View File
@@ -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
+1 -1
View File
@@ -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