From patchwork Fri Mar 30 09:40:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2/2] arm: Produce .const_data instead of .section .rodata for Mach-O X-Patchwork-Submitter: =?utf-8?q?Martin_Storsj=C3=B6?= X-Patchwork-Id: 64263 Message-Id: <20180330094033.85137-2-martin@martin.st> To: libav-devel@libav.org Date: Fri, 30 Mar 2018 12:40:33 +0300 From: =?utf-8?q?Martin_Storsj=C3=B6?= List-Id: libav development 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. --- libavutil/arm/asm.S | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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