summaryrefslogtreecommitdiff
path: root/EdkCompatibilityPkg/Foundation/Include/Ia32/EfiBind.h
diff options
context:
space:
mode:
Diffstat (limited to 'EdkCompatibilityPkg/Foundation/Include/Ia32/EfiBind.h')
-rw-r--r--EdkCompatibilityPkg/Foundation/Include/Ia32/EfiBind.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/EdkCompatibilityPkg/Foundation/Include/Ia32/EfiBind.h b/EdkCompatibilityPkg/Foundation/Include/Ia32/EfiBind.h
index 7c3c585b9e..61614355a8 100644
--- a/EdkCompatibilityPkg/Foundation/Include/Ia32/EfiBind.h
+++ b/EdkCompatibilityPkg/Foundation/Include/Ia32/EfiBind.h
@@ -295,7 +295,12 @@ typedef int32_t intn_t;
#endif
-
+//
+// For symbol name in GNU assembly code, an extra "_" is necessary
+//
+#if __GNUC__
+ #define ASM_PFX(name) _##name
+#endif
#endif