Commit 4d62ee67 authored by James Almer's avatar James Almer

x86inc: don't use read-only data sections on COFF targets

Yasm:
src/libavfilter/x86/af_volume.asm:24: warning: Standard COFF does not support read-only data sections
src/libavfilter/x86/af_volume.asm:24: warning: Unrecognized qualifier `align'

Nasm:
src/libavfilter/x86/af_volume.asm:24: error: standard COFF does not support section alignment specification
src/libavutil/x86/x86inc.asm:92: ... from macro `SECTION_RODATA' defined here
Tested-by: 's avatarClément Bœsch <u@pkh.me>
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent feab761b
...@@ -88,6 +88,8 @@ ...@@ -88,6 +88,8 @@
%macro SECTION_RODATA 0-1 16 %macro SECTION_RODATA 0-1 16
%ifidn __OUTPUT_FORMAT__,aout %ifidn __OUTPUT_FORMAT__,aout
section .text section .text
%elifidn __OUTPUT_FORMAT__,coff
section .text
%else %else
SECTION .rodata align=%1 SECTION .rodata align=%1
%endif %endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment