diff options
author | James Almer <jamrial@gmail.com> | 2017-06-26 00:29:16 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-06-27 12:48:04 -0300 |
commit | 4d62ee674699645c7b7105213e7d339665144069 (patch) | |
tree | 68a5cde0f3b3844b4d1770495a1038d15322f53c /libavutil | |
parent | feab761b73c37311a23a6cbbcee1ddf56439d5a4 (diff) | |
download | ffmpeg-4d62ee674699645c7b7105213e7d339665144069.tar.gz |
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: Clément Bœsch <u@pkh.me>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/x86/x86inc.asm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/x86/x86inc.asm b/libavutil/x86/x86inc.asm index fa826e6d85..c4ec29bd9d 100644 --- a/libavutil/x86/x86inc.asm +++ b/libavutil/x86/x86inc.asm @@ -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 |