# HG changeset patch # User astrange # Date 1234486642 0 # Node ID 7400956a815d15b8d3413e1163fe75bcc98194bd # Parent b6e7247d3f0e1275285fe5a9e55d227df6754783 Put dispatch_tab in the rodata section for macho64. This fixes linking shared libavcodec, since the linker doesn't allow text relocations in shared libraries under Darwin/x86_64. Based on a patch by Art Clarke (aclarke xuggle com) diff -r b6e7247d3f0e -r 7400956a815d x86/fft_mmx.asm --- a/x86/fft_mmx.asm Fri Feb 13 00:08:15 2009 +0000 +++ b/x86/fft_mmx.asm Fri Feb 13 00:57:22 2009 +0000 @@ -446,9 +446,15 @@ %endrep %undef n +%ifidn __OUTPUT_FORMAT__,macho64 +section .rodata +%endif + align 8 dispatch_tab%3%2: pointer list_of_fft +section .text + ; On x86_32, this function does the register saving and restoring for all of fft. ; The others pass args in registers and don't spill anything. cglobal fft_dispatch%3%2, 2,5,0, z, nbits