Mark thumb entry points as such when building for thumb, otherwise mark
them as arm.
This commit is contained in:
parent
827422e3fd
commit
8465de8e6c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user