From: Martin Storsjö Date: Fri, 24 Mar 2017 09:33:44 +0000 (+0200) Subject: arm: Use .section .rodata for non-elf, non-mach platforms as well X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=196d7676c8f40b7c1f8f2f4af64e09ebf4c9816b;p=libx264 arm: Use .section .rodata for non-elf, non-mach platforms as well If targeting windows with armasm, gas-preprocessor can rewrite the .section .rodata into the right construct for that platform. --- diff --git a/common/arm/asm.S b/common/arm/asm.S index 5eb2881f..c46b61b1 100644 --- a/common/arm/asm.S +++ b/common/arm/asm.S @@ -54,8 +54,10 @@ #ifdef __MACH__ # define MACH +# define NONMACH @ #else # define MACH @ +# define NONMACH #endif #if HAVE_AS_FUNC @@ -108,7 +110,7 @@ ELF .size \name, . - \name .if HAVE_SECTION_DATA_REL_RO && \relocate .section .data.rel.ro .else -ELF .section .rodata +NONMACH .section .rodata MACH .const_data .endif .align \align