aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Gramner <henrik@gramner.com>2017-08-15 16:11:32 +0200
committerHenrik Gramner <henrik@gramner.com>2018-01-20 19:23:37 +0100
commit9e4b3675f226238ae132cada2bb82bcb00110aa6 (patch)
tree65ca97fb28eda4dc56aa964c3e3ad0207847271e
parent3a02cbe3faccad9e346d63cf40c009e664657304 (diff)
downloadffmpeg-9e4b3675f226238ae132cada2bb82bcb00110aa6.tar.gz
x86inc: Use .rdata instead of .rodata on Windows
The standard section for read-only data on Windows is .rdata. Nasm will flag non-standard sections as executable by default which isn't ideal.
-rw-r--r--libavutil/x86/x86inc.asm4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavutil/x86/x86inc.asm b/libavutil/x86/x86inc.asm
index 3b43dbc2e0..57cd4d80de 100644
--- a/libavutil/x86/x86inc.asm
+++ b/libavutil/x86/x86inc.asm
@@ -90,6 +90,10 @@
SECTION .text
%elifidn __OUTPUT_FORMAT__,coff
SECTION .text
+ %elifidn __OUTPUT_FORMAT__,win32
+ SECTION .rdata align=%1
+ %elif WIN64
+ SECTION .rdata align=%1
%else
SECTION .rodata align=%1
%endif