__attribute__((weak)) variable attribute
The declaration of a weak variable is permitted, and acts in a similar way to __weak. The equivalent is:
__weak int Variable_Attributes_weak_compare;
Note
This variable attribute is a GNU compiler extension that is supported by the ARM compiler.
See also