]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Arm/ProcessorBind.h
Fix issue with CodeSourcery gcc requiring assembly functions to have a .type define...
[mirror_edk2.git] / MdePkg / Include / Arm / ProcessorBind.h
index 810bf03be0db0318ae4735f999318f8b7dc2cd60..a68b30b811dcefcf69087faa6b21d103065a713c 100644 (file)
@@ -110,6 +110,20 @@ typedef INT32   INTN;
   /// 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