4.3.12. __attribute__((weak))

Functions defined with __attribute__((weak)) export their symbols weakly.

Functions declared with __attribute__((weak)) and then defined without __attribute__((weak)) behave as weak functions. This is not the same behavior as the __weak keyword.


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


extern int Function_Attributes_weak_0 (int b) __attribute__ ((weak));

See also

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