summaryrefslogtreecommitdiffstats
path: root/libavutil/arm
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2019-01-11 15:23:16 +0200
committerMartin Storsjö <martin@martin.st>2019-01-25 23:53:37 +0200
commit41cf3e3b1ca375962951fde1b90a03b16197d205 (patch)
tree5405f97e953eb81393d7ba93e2ba654498c6abe1 /libavutil/arm
parentca44fa5d7fda7e954f3ebfeb5b0d6d1be55fcaa3 (diff)
downloadffmpeg-streaming-41cf3e3b1ca375962951fde1b90a03b16197d205.zip
ffmpeg-streaming-41cf3e3b1ca375962951fde1b90a03b16197d205.tar.gz
arm: Create proper .rdata sections for COFF
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 <Tom.Tan@microsoft.com>. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavutil/arm')
-rw-r--r--libavutil/arm/asm.S2
1 files changed, 2 insertions, 0 deletions
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
OpenPOWER on IntegriCloud