git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8362
6f19259b-4bc3-4df7-8a09-
765794883524
-// For symbol name in GNU assembly code, an extra "_" is necessary\r
+// Macros for GNU assembly code\r
//\r
#if defined(__GNUC__)\r
#if defined(linux)\r
//\r
#if defined(__GNUC__)\r
#if defined(linux)\r
#else\r
#define ASM_PFX(name) _##name\r
#endif \r
#else\r
#define ASM_PFX(name) _##name\r
#endif \r
- #if defined(__APPLE__)\r
- #define ASM_GLOBAL .globl\r
- #else\r
- #define ASM_GLOBAL .global\r
- #endif \r
+ ///\r
+ /// For GNU assembly code, .global or .globl can declare global symbols.\r
+ /// Define this macro to unify the usage.\r
+ ///\r
+ #define ASM_GLOBAL .globl\r
#define GLOBAL_REMOVE_IF_UNREFERENCED\r
#endif\r
\r
#define GLOBAL_REMOVE_IF_UNREFERENCED\r
#endif\r
\r
-#if defined(__APPLE__)\r
- #define ASM_GLOBAL .globl\r
-#else\r
- #define ASM_GLOBAL .global\r
-#endif \r
+///\r
+/// For GNU assembly code, .global or .globl can declare global symbols.\r
+/// Define this macro to unify the usage.\r
+///\r
+#define ASM_GLOBAL .globl\r
\r
///\r
/// A pointer to a function in IPF points to a plabel.\r
\r
///\r
/// A pointer to a function in IPF points to a plabel.\r
-// For symbol name in GNU assembly code, an extra "_" is necessary\r
+// Macros for GNU assembly code\r
//\r
#if defined(__GNUC__)\r
#if defined(linux)\r
#define ASM_PFX(name) name\r
#else\r
#define ASM_PFX(name) _##name\r
//\r
#if defined(__GNUC__)\r
#if defined(linux)\r
#define ASM_PFX(name) name\r
#else\r
#define ASM_PFX(name) _##name\r
- #endif \r
- #if defined(__APPLE__)\r
- #define ASM_GLOBAL .globl\r
- #else\r
- #define ASM_GLOBAL .global\r
+ ///\r
+ /// For GNU assembly code, .global or .globl can declare global symbols.\r
+ /// Define this macro to unify the usage.\r
+ ///\r
+ #define ASM_GLOBAL .globl\r