diff options
author | Martin Storsjö <martin@martin.st> | 2018-03-30 12:33:46 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2018-03-30 15:49:30 +0300 |
commit | 3a7b4ae62c798edbd82bcd8fef863c74ed2acd4a (patch) | |
tree | b691121d3146045eb8b998db726851d6fcd66545 /libavutil/arm | |
parent | ab05d3934de8e932dbd77979a687e6598e67535c (diff) | |
download | ffmpeg-3a7b4ae62c798edbd82bcd8fef863c74ed2acd4a.tar.gz |
arm: Produce .const_data instead of .section .rodata for Mach-O
This is the same combination of .section directives as used in
aarch64/asm.S.
Since Xcode 9.3, the bundled clang supports altmacro and doesn't
require using gas-preprocessor any longer.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavutil/arm')
-rw-r--r-- | libavutil/arm/asm.S | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libavutil/arm/asm.S b/libavutil/arm/asm.S index 08574852b5..e7eea0271f 100644 --- a/libavutil/arm/asm.S +++ b/libavutil/arm/asm.S @@ -111,11 +111,17 @@ FUNC .func \name ELF .size \name, . - \name .purgem endconst .endm -.if HAVE_SECTION_DATA_REL_RO && \relocate +#if HAVE_SECTION_DATA_REL_RO +.if \relocate .section .data.rel.ro .else .section .rodata .endif +#elif !defined(__MACH__) + .section .rodata +#else + .const_data +#endif .align \align \name: .endm |