SPNU151V January 1998 – February 2020
The tables in the .cinit section consist of variable-size initialization records. Each variable that must be autoinitialized has a record in the .cinit section. Figure 6-5 shows the format of the .cinit section and the initialization records.
The fields of an initialization record contain the following information:
Each variable that must be autoinitialized has an initialization record in the .cinit section.
Example 9 shows initialized global variables defined in C. Example 10 shows the corresponding initialization table. The section .cinit:c is a subsection in the .cinit section that contains all scalar data. The subsection is handled as one record during initialization, which minimizes the overall size of the .cinit section.