Merge commit '5584abf69d83169a010aca404cd1cf95c23ad9ef'

* commit '5584abf69d83169a010aca404cd1cf95c23ad9ef':
  arm: Emit .thumb_func directives

Merged-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2019-02-20 13:51:30 -03:00
commit b2f32d60ee
1 changed files with 8 additions and 0 deletions

View File

@ -46,6 +46,12 @@
# define FPU @
#endif
#if CONFIG_THUMB && defined(__APPLE__)
# define TFUNC
#else
# define TFUNC @
#endif
#if HAVE_AS_ARCH_DIRECTIVE
#if HAVE_NEON
.arch armv7-a
@ -98,10 +104,12 @@ FUNC .endfunc
.global EXTERN_ASM\name
ELF .type EXTERN_ASM\name, %function
FUNC .func EXTERN_ASM\name
TFUNC .thumb_func EXTERN_ASM\name
EXTERN_ASM\name:
.else
ELF .type \name, %function
FUNC .func \name
TFUNC .thumb_func \name
\name:
.endif
.endm