summaryrefslogtreecommitdiff
path: root/MdePkg
diff options
context:
space:
mode:
authoreric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2008-10-23 05:28:43 +0000
committereric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2008-10-23 05:28:43 +0000
commit6b3a2ca003f15e4b35b7909e8fa0c8c7c67540db (patch)
treeb63ea81aa6a42ea3ca4b4a93cb47bb54d41d9269 /MdePkg
parenta8f1dcd7b7fcbe1dc51f79bd4b346121e073ea72 (diff)
downloadedk2-platforms-6b3a2ca003f15e4b35b7909e8fa0c8c7c67540db.tar.xz
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
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Include/X64/ProcessorBind.h6
1 files changed, 5 insertions, 1 deletions
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)