]> granicus.if.org Git - libx264/commitdiff
arm: Use .section .rodata for non-elf, non-mach platforms as well
authorMartin Storsjö <martin@martin.st>
Fri, 24 Mar 2017 09:33:44 +0000 (11:33 +0200)
committerHenrik Gramner <henrik@gramner.com>
Sun, 21 May 2017 20:41:07 +0000 (22:41 +0200)
If targeting windows with armasm, gas-preprocessor can rewrite the
.section .rodata into the right construct for that platform.

common/arm/asm.S

index 5eb2881f23af57570db00ed8d4b5be6bd95ee519..c46b61b18f3f829138a337ba96d2087d25c07ff6 100644 (file)
 
 #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