summaryrefslogtreecommitdiff
path: root/libavcodec/x86
diff options
context:
space:
mode:
authorAlexander Strange <astrange@ithinksw.com>2009-02-13 00:57:22 +0000
committerAlexander Strange <astrange@ithinksw.com>2009-02-13 00:57:22 +0000
commitb6188c5a55ca219b4602f770e3e76cab95bad6d0 (patch)
treefe01cbfca84062585402d1f720143267aa3e061e /libavcodec/x86
parent4eb311d01cc91e371e30ffd470672e83b6d7cc3e (diff)
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) Originally committed as revision 17197 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/x86')
-rw-r--r--libavcodec/x86/fft_mmx.asm6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/x86/fft_mmx.asm b/libavcodec/x86/fft_mmx.asm
index 39718677ae..1a9d1894cd 100644
--- a/libavcodec/x86/fft_mmx.asm
+++ b/libavcodec/x86/fft_mmx.asm
@@ -446,9 +446,15 @@ fft %+ n %+ %3%2:
%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