SLAU131Y October 2004 – June 2021
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).
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.