Summary of sections
The compiler places code and data into sections. Based on a configuration specified in the linker configuration file, ILINK places sections in memory.
This table lists the ELF sections and blocks that are used by the IAR build tools:
Section | Description |
|---|---|
Holds zero-initialized | |
Holds | |
Holds zero-initialized | |
Holds | |
| |
Holds the call table vectors generated by use of the | |
Holds | |
Holds | |
Holds | |
Holds the stack used by C or C++ programs. | |
Holds | |
Holds initial values for | |
Holds | |
Holds initial values for | |
| |
Holds the heap used for dynamically allocated | |
Holds zero-initialized | |
Holds | |
Holds | |
Holds initial values for | |
Holds the heap used for dynamically allocated | |
Holds the | |
Holds the locale table for the selected locales. | |
Holds the TLS area for the primary thread. | |
Holds initial values for the TLS area. | |
Holds a table of dynamic initialization functions. | |
Holds the interrupt vector table | |
Holds the heap used for dynamically allocated | |
Holds the OCD option bytes for configuring the on-chip debugging interface. | |
Holds a table of dynamic initialization functions. | |
Holds zero-initialized static and global variables. | |
Holds | |
Holds | |
Holds initial values for | |
Holds the Security ID that allows an authentication check before a debug session is started. | |
Holds switch tables for | |
Holds switch tables for | |
Holds thread-local zero-initialized static and global variables for the primary thread. | |
Holds thread-local initialized static and global variables for the primary thread. | |
Holds | |
Holds | |
| |
Holds the short address working area—an extra register variable area. | |
|
Other sections
In addition to the ELF sections used for your application, the tools use a number of other ELF sections for a variety of purposes:
Sections starting with
.debuggenerally contain debug information in the DWARF formatSections starting with
.iar.debugcontain supplemental debug information in an IAR formatThe section
.commentcontains the tools and command lines used for building the fileSections starting with
.relor.relacontain ELF relocation informationThe section
.strtabcontains the names of the symbol in the symbol table