/// Define this macro to unify the usage.\r
///\r
#define ASM_GLOBAL .globl\r
+\r
+ #if !defined(__APPLE__)\r
+ ///\r
+ /// ARM EABI defines that the linker should not manipulate call relocations\r
+ /// (do bl/blx conversion) unless the target symbol has function type.\r
+ /// CodeSourcery 2010.09 started requiring the .type to function properly\r
+ ///\r
+ #define INTERWORK_FUNC(func__) .type ASM_PFX(func__), %function\r
+ #else\r
+ //\r
+ // .type not supported by Apple Xcode tools \r
+ //\r
+ #define INTERWORK_FUNC(func__)\r
+ #endif\r
#endif\r
\r
/**\r