From ede21d714803e5b3fe81152ab715351ac165ed81 Mon Sep 17 00:00:00 2001 From: phcoder Date: Thu, 4 Jun 2009 21:38:17 +0000 Subject: [PATCH] 2009-06-04 Vladimir Serbinenko Definitions for creating asm symbols with Apple's CC * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro [APPLE_CC] (VARIABLE): likewise --- ChangeLog | 7 +++++++ include/grub/symbol.h | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0c13d6089..6193c812c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-06-04 Vladimir Serbinenko + + 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 Disable lnxboot.img when compiled diff --git a/include/grub/symbol.h b/include/grub/symbol.h index ef19a739d..68d9f00e9 100644 --- a/include/grub/symbol.h +++ b/include/grub/symbol.h @@ -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