Support Thumb 2.

This commit is contained in:
Sebastian Huber
2012-02-11 21:09:44 +01:00
parent 6091f1a6aa
commit 701f0782e6
+4 -1
View File
@@ -148,7 +148,10 @@
#define PUBLIC(sym) .globl SYM (sym)
#define EXTERN(sym) .globl SYM (sym)
#ifdef __thumb__
#if defined(__thumb2__)
#define DEFINE_FUNCTION_ARM(name) \
.thumb_func ; .globl name ; name:
#elif defined(__thumb__)
#define DEFINE_FUNCTION_ARM(name) \
.thumb_func ; .globl name ; name: ; bx pc ; \
.arm ; .globl name ## _arm ; name ## _arm: