2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>

Definitions for creating asm symbols with Apple's CC

	* include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
	[APPLE_CC] (VARIABLE): likewise
This commit is contained in:
phcoder 2009-06-04 21:38:17 +00:00
parent 9dbf765337
commit ede21d7148
2 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
Definitions for creating asm symbols with Apple's CC
* include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
[APPLE_CC] (VARIABLE): likewise
2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
Disable lnxboot.img when compiled

View file

@ -28,7 +28,10 @@
# define EXT_C(sym) sym
#endif
#if ! defined (__CYGWIN__) && ! defined (__MINGW32__)
#if defined (APPLE_CC)
#define FUNCTION(x) .globl EXT_C(x) ; EXT_C(x):
#define VARIABLE(x) .globl EXT_C(x) ; EXT_C(x):
#elif ! defined (__CYGWIN__) && ! defined (__MINGW32__)
#define FUNCTION(x) .globl EXT_C(x) ; .type EXT_C(x), "function" ; EXT_C(x):
#define VARIABLE(x) .globl EXT_C(x) ; .type EXT_C(x), "object" ; EXT_C(x):
#else