TYPE
Attribute
The symbol type attribute. This attribute can be either
COMMON
, DATA
, or
FUNCTION
. COMMON
results in a
tentative symbol definition. DATA
and
FUNCTION
result in a section symbol definition or an
absolute symbol definition. See Symbol Table Section.
A data attribute results in the creation of an OBJT
symbol.
A data attribute that is accompanied with a size, but no value creates a section
symbol by associating the symbol with an ELF section. This
section is filled with zeros. A function attribute results in the creation of an
FUNC
symbol.
A function attribute that is accompanied with a size, but no value creates a section symbol by associating the symbol with an ELF section. This section is assigned a void function, generated by the link-editor, with the following signature.
void (*)(void)
A data or function attribute that is accompanied with a value results in the
appropriate symbol type together with an absolute, ABS
,
section index.
The creation of a section data symbol is useful for the creation of filters. External references to a section data symbol of a filter from an executable result in the appropriate copy relocation being generated. See Copy Relocations.