SPRU513Z August 2001 – October 2023 SM320F28335-EP
ELF Symbol Information
.elfsym name, SYM_SIZE(size)
.elfsym name, SYM_PRESERVE(1)
.elfsym name, SYM_UPDATE(1)
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.
This directive is supported for EABI mode only.
SYM_SIZE indicates the allocation size (in bytes) of the symbol indicated by name.
The SYM_PRESERVE and SYM_UPDATE types indicate how a symbol should be handled during a warm start. These types are supported only if the executable is compiled for Live Firmware Update (LFU).
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