diff --git a/libavutil/arm/asm.S b/libavutil/arm/asm.S index 6744f2a200..5fc85591dd 100644 --- a/libavutil/arm/asm.S +++ b/libavutil/arm/asm.S @@ -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