Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2018-10-12 13:29:51 +0300
committerMartin Storsjö <martin@martin.st>2018-10-12 23:25:53 +0300
commit5584abf69d83169a010aca404cd1cf95c23ad9ef (patch)
tree10fcfbb40beda3ac703505b8a216beea4c1e2090 /libavutil/arm
parent04e8b8b0530e2aa33010faba3d0b6b6c9c5b704e (diff)
arm: Emit .thumb_func directives
Prior to Xcode 9.3, the clang built-in assembler didn't support altmacro, and gas-preprocessor was used for assembling for arm/darwin. For thumb functions, gas-preprocessor took care of adding the .thumb_func directives, but when now being able to assemble without gas-preprocessor, we need to add these directives ourselves. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavutil/arm')
-rw-r--r--libavutil/arm/asm.S8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavutil/arm/asm.S b/libavutil/arm/asm.S
index e7eea0271f..62ce493180 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