You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
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.
This commit is contained in:
@@ -90,6 +90,10 @@
|
|||||||
SECTION .text
|
SECTION .text
|
||||||
%elifidn __OUTPUT_FORMAT__,coff
|
%elifidn __OUTPUT_FORMAT__,coff
|
||||||
SECTION .text
|
SECTION .text
|
||||||
|
%elifidn __OUTPUT_FORMAT__,win32
|
||||||
|
SECTION .rdata align=%1
|
||||||
|
%elif WIN64
|
||||||
|
SECTION .rdata align=%1
|
||||||
%else
|
%else
|
||||||
SECTION .rodata align=%1
|
SECTION .rodata align=%1
|
||||||
%endif
|
%endif
|
||||||
|
Reference in New Issue
Block a user