SPRU513Y August 2001 – June 2022 SM320F28335-EP
Define Common Data Section
.group group_section_name group_type
.gmember section_name
.endgroup
Three directives instruct the assembler to make certain sections members of an ELF group section (see the ELF specification for more information on group sections).
These directives are supported for EABI mode only.
The .group directive begins the group declaration. The group_section_name designates the name of the group section. The group_type designates the type of the group. The following types are supported:
0x0 | Regular ELF group | |
0x1 | COMDAT ELF group |
Duplicate COMDAT (common data) groups are allowed in multiple modules; the linker keeps only one. Creating such duplicate groups is useful for late instantiation of C++ templates and for providing debugging information.
The .gmember directive designates section_name as a member of the group.
The .endgroup directive ends the group declaration.