mirror of https://github.com/acidanthera/audk.git
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:
parent
a8f1dcd7b7
commit
6b3a2ca003
|
@ -234,7 +234,11 @@ typedef INT64 INTN;
|
||||||
// For symbol name in GNU assembly code, an extra "_" is necessary
|
// For symbol name in GNU assembly code, an extra "_" is necessary
|
||||||
//
|
//
|
||||||
#if __GNUC__
|
#if __GNUC__
|
||||||
#define ASM_PFX(name) _##name
|
#if defined(linux)
|
||||||
|
#define ASM_PFX(name) name
|
||||||
|
#else
|
||||||
|
#define ASM_PFX(name) _##name
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define FUNCTION_ENTRY_POINT(p) (p)
|
#define FUNCTION_ENTRY_POINT(p) (p)
|
||||||
|
|
Loading…
Reference in New Issue