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
This commit is contained in:
eric_tian 2008-10-23 05:28:43 +00:00
parent a8f1dcd7b7
commit 6b3a2ca003
1 changed files with 5 additions and 1 deletions

View File

@ -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)