From 6b3a2ca003f15e4b35b7909e8fa0c8c7c67540db Mon Sep 17 00:00:00 2001 From: eric_tian Date: Thu, 23 Oct 2008 05:28:43 +0000 Subject: [PATCH] wrap ASM_PFX macro to avoid generating symbols preceded by underscore in Linux Gcc or Mingw Gcc git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6192 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Include/X64/ProcessorBind.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MdePkg/Include/X64/ProcessorBind.h b/MdePkg/Include/X64/ProcessorBind.h index 975cf26ced..c2d702a315 100644 --- a/MdePkg/Include/X64/ProcessorBind.h +++ b/MdePkg/Include/X64/ProcessorBind.h @@ -234,7 +234,11 @@ typedef INT64 INTN; // For symbol name in GNU assembly code, an extra "_" is necessary // #if __GNUC__ - #define ASM_PFX(name) _##name + #if defined(linux) + #define ASM_PFX(name) name + #else + #define ASM_PFX(name) _##name + #endif #endif #define FUNCTION_ENTRY_POINT(p) (p)