| |||
| Home > Directives Reference > Miscellaneous directives > ATTR | |||
The ATTR set directives set values for the ABI
build attributes.
The ATTR scope directives specify the scope for
which the set value applies to.
ATTR FILESCOPE
ATTRSCOPEname
ATTRsettypetagid,value
where:
nameis a section name or symbol name.
settypecan be any of:
SETVALUE
SETSTRING
SETCOMPATIBLEWITHVALUE
SETCOMPATIBLEWITHSTRING
tagidis an attribute tag name (or its numerical value) defined in the ABI for the ARM Architecture.
valuedepends on :settype
is a 32-bit integer value when is settypeSETVALUE or SETCOMPATIBLEWITHVALUE
is a nul-terminated string when is settypeSETSTRING or SETCOMPATIBLEWITHSTRING
The ATTR set directives following the ATTR FILESCOPE directive
apply to the entire object file. The ATTR set directives
following the ATTR SCOPE directive
apply only to the named section or symbol.name
For tags that expect an integer, you must use SETVALUE or SETCOMPATIBLEWITHVALUE.
For tags that expect a string, you must use SETSTRING or SETCOMPATIBLEWITHSTRING.
Use SETCOMPATIBLEWITHVALUE and SETCOMPATIBLEWITHSTRING to
set tag values which the object file is also compatible with.
ATTR SETSTRING Tag_CPU_raw_name, "Cortex-A8" ATTR SETVALUE Tag_VFP_arch, 3 ; VFPv3 instructions were permitted. ATTR SETVALUE 10, 3 ; 10 is the numerical value of ; Tag_VFP_arch.