diff options
author | Martin Storsjö <martin@martin.st> | 2019-01-11 15:23:16 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2019-01-25 23:53:37 +0200 |
commit | 41cf3e3b1ca375962951fde1b90a03b16197d205 (patch) | |
tree | 5405f97e953eb81393d7ba93e2ba654498c6abe1 /libavutil/arm | |
parent | ca44fa5d7fda7e954f3ebfeb5b0d6d1be55fcaa3 (diff) | |
download | ffmpeg-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.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/arm/asm.S b/libavutil/arm/asm.S index 62ce493180..9842d03bc0 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 |