9.51 __attribute__((weak)) function attribute

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.

Note

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

Example

extern int Function_Attributes_weak_0 (int b) __attribute__((weak));
Related reference
9.69 __attribute__((weak)) variable attribute
9.20 __weak
Non-ConfidentialPDF file icon PDF versionARM DUI0375F
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.