summaryrefslogtreecommitdiffstats
path: root/MdePkg/Include/Ia32
diff options
context:
space:
mode:
authoreric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2008-06-30 05:50:49 +0000
committereric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2008-06-30 05:50:49 +0000
commited0b86b1838a525dc5e9e86dc0acd47e3a16dc50 (patch)
tree9c09b5c7599820fb678ac57abff5941552435de7 /MdePkg/Include/Ia32
parent804405e7d10525e41720216137b2551f62a0663f (diff)
downloadedk2-ed0b86b1838a525dc5e9e86dc0acd47e3a16dc50.tar.gz
edk2-ed0b86b1838a525dc5e9e86dc0acd47e3a16dc50.tar.bz2
edk2-ed0b86b1838a525dc5e9e86dc0acd47e3a16dc50.zip
make change to support UnixPkg build. The changes are listed as follows:
1. change ASM_PFX() macro, the underscore preceding to function symbol don't be added in Linux. 2. move some illegal characters in .S file. 3. change ELFGCC flag in tools_def.template to support Linux&ELFGCC build git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5381 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Include/Ia32')
-rw-r--r--MdePkg/Include/Ia32/ProcessorBind.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/MdePkg/Include/Ia32/ProcessorBind.h b/MdePkg/Include/Ia32/ProcessorBind.h
index 45e9c14bf3..72c10328e4 100644
--- a/MdePkg/Include/Ia32/ProcessorBind.h
+++ b/MdePkg/Include/Ia32/ProcessorBind.h
@@ -197,7 +197,11 @@ typedef INT32 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)