From 41cf3e3b1ca375962951fde1b90a03b16197d205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 11 Jan 2019 15:23:16 +0200 Subject: arm: Create proper .rdata sections for COFF MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As .rodata isn't one of the default created sections for COFF, it was created as a read-write data section. By using the default .rdata section name for COFF, it automatically becomes a read-only data section. The existing ".section .rodata" works as intended for ELF though. This is based on an original patch and diagnose by Tom Tan . Signed-off-by: Martin Storsjö --- libavutil/arm/asm.S | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavutil/arm') diff --git a/libavutil/arm/asm.S b/libavutil/arm/asm.S index 62ce493..9842d03 100644 --- a/libavutil/arm/asm.S +++ b/libavutil/arm/asm.S @@ -125,6 +125,8 @@ ELF .size \name, . - \name .else .section .rodata .endif +#elif defined(_WIN32) + .section .rdata #elif !defined(__MACH__) .section .rodata #else -- cgit v1.1