From 297c148b7a05abc1a9dec34d63b35169e5f41809 Mon Sep 17 00:00:00 2001 From: jljusten Date: Mon, 26 May 2008 21:55:35 +0000 Subject: [PATCH] edk2/EdkCompatibilityPkg/Foundation/Include/(Ia32|X64)/EfiBind.h: Merge from MdePkg/Include/(Ia32|x64)/ProcessorBind.h for GCC support. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5293 6f19259b-4bc3-4df7-8a09-765794883524 --- EdkCompatibilityPkg/Foundation/Include/Ia32/EfiBind.h | 7 ++++++- EdkCompatibilityPkg/Foundation/Include/X64/EfiBind.h | 7 ++++++- 2 files changed, 12 insertions(+), 2 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 diff --git a/EdkCompatibilityPkg/Foundation/Include/X64/EfiBind.h b/EdkCompatibilityPkg/Foundation/Include/X64/EfiBind.h index 52a223990d..19570c82b2 100644 --- a/EdkCompatibilityPkg/Foundation/Include/X64/EfiBind.h +++ b/EdkCompatibilityPkg/Foundation/Include/X64/EfiBind.h @@ -248,7 +248,12 @@ typedef int64_t intn_t; #endif - +// +// For symbol name in GNU assembly code, an extra "_" is necessary +// +#if __GNUC__ + #define ASM_PFX(name) _##name +#endif #endif