From 196d7676c8f40b7c1f8f2f4af64e09ebf4c9816b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20Storsj=C3=B6?= Date: Fri, 24 Mar 2017 11:33:44 +0200 Subject: [PATCH] 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. --- common/arm/asm.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.40.0