[FFmpeg-devel] [PATCH] Workaround Mac-OS x86_64 dynamic loader bug for Yasm generated code

Diego Biurrun diego
Wed Feb 11 17:15:29 CET 2009


On Wed, Feb 04, 2009 at 12:53:02PM -0800, Art Clarke wrote:
> On Wed, Feb 4, 2009 at 12:27 PM, Art Clarke <aclarke at xuggle.com> wrote:
> > See this chain for details on the problem:
> > http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2009-February/061189.html
> >
> > Tested on Mac and Linux in 32 and 64 bit builds and everything seems to work.
> 
> My bad; I attached an earlier patch.  Correct patch is attached (this
> one doesn't set alignment to 16 after change)
> 
> --- libavcodec/x86/fft_mmx.asm	(revision 16989)
> +++ libavcodec/x86/fft_mmx.asm	(working copy)
> @@ -446,8 +446,16 @@
>  %endrep
>  %undef n
>  
> +%ifidn __OUTPUT_FORMAT__,macho64
> +; Putting this section in .text on x86_64 darwin causes problems
> +section .rodata
> +%endif
>  align 8
>  dispatch_tab%3%2: pointer list_of_fft
> +%ifidn __OUTPUT_FORMAT__,macho64
> +; Set section back to .text
> +section .text
> +%endif

What about this?

Diego




More information about the ffmpeg-devel mailing list