Mark thumb entry points as such when building for thumb, otherwise mark

them as arm.
This commit is contained in:
Andrew Turner 2015-05-11 19:04:32 +00:00
parent 827422e3fd
commit 8465de8e6c

View File

@ -87,7 +87,13 @@
*/
#define GLOBAL(x) .global x
#define _LEENTRY(x) .type x,_ASM_TYPE_FUNCTION; x:
#ifdef __thumb__
#define _FUNC_MODE .code 16; .thumb_func
#else
#define _FUNC_MODE .code 32
#endif
#define _LEENTRY(x) .type x,_ASM_TYPE_FUNCTION; _FUNC_MODE; x:
#define _LEEND(x) /* nothing */
#define _EENTRY(x) GLOBAL(x); _LEENTRY(x)
#define _EEND(x) _LEEND(x)