* include/grub/symbol.h (ADDR): New macro. Replace all occurences of

=x with ADDR(x) in arm assembly.
	(END): New macro. Replace all .end with END.
This commit is contained in:
Vladimir Serbinenko 2013-11-13 01:04:56 +01:00
parent 16057d6bbb
commit 286551b4eb
5 changed files with 34 additions and 18 deletions

View file

@ -37,6 +37,16 @@
# define EXT_C(sym) sym
#endif
#ifdef __arm__
#ifdef __clang__
#define ADDR(x) x
#define END
#else
#define ADDR(x) =x
#define END .end
#endif
#endif
#if defined (__APPLE__)
#define FUNCTION(x) .globl EXT_C(x) ; EXT_C(x):
#define VARIABLE(x) .globl EXT_C(x) ; EXT_C(x):