SPRUI03E June 2015 – January 2023
ELF Symbol Information
.elfsym name, SYM_SIZE(size)
The .elfsym directive provides additional information for symbols in the ELF format. This directive is designed to convey different types of information, so the type(value) syntax is used for each type. Currently, this directive supports only the SYM_SIZE type.
SYM_SIZE indicates the allocation size (in bytes) of the symbol indicated by name.
This example shows the use of the ELF symbol information directive.
.sect ".examp"
.align 4
.elfsym ex_sym, SYM_SIZE(4)
ex_sym:
.word 0