• Nico Weber's avatar
    Remove .rodata alignment kludge for Mach-O if a recent enough yasm is used. · a4a88fd4
    Nico Weber authored
    Yasm was fixed in its r2161 and yasm 0.8.0 (Apr 2010) contained this fix.
    Nasm was fixed in 2.06 (Jun 2009):
    https://groups.google.com/group/alt.lang.asm/browse_thread/thread/fcc85bbc3745d893
    
    I tested with yasm  0.7.99 and yasm 1.2.0.7, where this works fine.
    
    I also tested with nasm. The nasm shipping with Xcode is too old to understand
    ffmpeg's assembly, before and after the patch. Nasm 2.10 fails to compile
    fft_mmx.asm on trunk with
    
      libavcodec/x86/fft_mmx.asm:88: panic: section ".text" has already been specified with alignment 32, conflicts with new alignment of 16
    
    but builds fine if I change the two alignment "16"s in x86inc.asm to "32". With this patch,
    nasm 2.10 fails with
    
      libavcodec/x86/fft_mmx.asm:39: panic: section ".rodata" has already been specified with alignment 32, conflicts with new alignment of 16
    
    instead, but again builds fine with s/16/32/.
    Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
    a4a88fd4
Name
Last commit
Last update
doc Loading commit data...
ffpresets Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
mt-work Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
Doxyfile Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
RELEASE Loading commit data...
arch.mak Loading commit data...
cmdutils.c Loading commit data...
cmdutils.h Loading commit data...
cmdutils_common_opts.h Loading commit data...
common.mak Loading commit data...
configure Loading commit data...
ffmpeg.c Loading commit data...
ffplay.c Loading commit data...
ffprobe.c Loading commit data...
ffserver.c Loading commit data...
library.mak Loading commit data...
version.sh Loading commit data...