diff options
Diffstat (limited to 'MdePkg')
-rw-r--r-- | MdePkg/Include/Ia32/ProcessorBind.h | 7 | ||||
-rw-r--r-- | MdePkg/Include/x64/ProcessorBind.h | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/MdePkg/Include/Ia32/ProcessorBind.h b/MdePkg/Include/Ia32/ProcessorBind.h index 2dccac4eb0..5fdb55077b 100644 --- a/MdePkg/Include/Ia32/ProcessorBind.h +++ b/MdePkg/Include/Ia32/ProcessorBind.h @@ -193,5 +193,12 @@ typedef INT32 INTN; #define GLOBAL_REMOVE_IF_UNREFERENCED
#endif
+//
+// For symbol name in GNU assembly code, an extra "_" is necessary
+//
+#if __GNUC__
+ #define ASM_PFX(name) _##name
+#endif
+
#endif
diff --git a/MdePkg/Include/x64/ProcessorBind.h b/MdePkg/Include/x64/ProcessorBind.h index a4a1a35e35..a401d23f26 100644 --- a/MdePkg/Include/x64/ProcessorBind.h +++ b/MdePkg/Include/x64/ProcessorBind.h @@ -225,5 +225,12 @@ typedef INT64 INTN; #define GLOBAL_REMOVE_IF_UNREFERENCED
#endif
+//
+// For symbol name in GNU assembly code, an extra "_" is necessary
+//
+#if __GNUC__
+ #define ASM_PFX(name) _##name
+#endif
+
#endif
|