4.5.10. __attribute__((weak))

The declaration of a weak variable is permitted, and acts in a similar way to __weak.


The extern qualifier is required in GNU mode. In non-GNU mode the compiler assumes that if the variable is not extern then it is treated like any other non weak variable.


This variable attribute is a GNU compiler extension that is supported by the ARM compiler.

See also

Copyright © 2007, 2010 ARM Limited. All rights reserved.ARM DUI 0348A