x86inc: don't use read-only data sections on COFF targets
authorJames Almer <jamrial@gmail.com>
Mon, 26 Jun 2017 03:29:16 +0000 (00:29 -0300)
committerJames Almer <jamrial@gmail.com>
Tue, 27 Jun 2017 15:48:04 +0000 (12:48 -0300)
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: Clément Bœsch <u@pkh.me>
Signed-off-by: James Almer <jamrial@gmail.com>
libavutil/x86/x86inc.asm

index fa826e6..c4ec29b 100644 (file)
@@ -88,6 +88,8 @@
 %macro SECTION_RODATA 0-1 16
     %ifidn __OUTPUT_FORMAT__,aout
         section .text
+    %elifidn __OUTPUT_FORMAT__,coff
+        section .text
     %else
         SECTION .rodata align=%1
     %endif