Mercurial > libavcodec.hg
comparison x86/fft_mmx.asm @ 8820:7400956a815d libavcodec
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)
author | astrange |
---|---|
date | Fri, 13 Feb 2009 00:57:22 +0000 |
parents | 7768bdfd4f7b |
children | c08ca946c80a |
comparison
equal
deleted
inserted
replaced
8819:b6e7247d3f0e | 8820:7400956a815d |
---|---|
444 | 444 |
445 %assign n n*2 | 445 %assign n n*2 |
446 %endrep | 446 %endrep |
447 %undef n | 447 %undef n |
448 | 448 |
449 %ifidn __OUTPUT_FORMAT__,macho64 | |
450 section .rodata | |
451 %endif | |
452 | |
449 align 8 | 453 align 8 |
450 dispatch_tab%3%2: pointer list_of_fft | 454 dispatch_tab%3%2: pointer list_of_fft |
455 | |
456 section .text | |
451 | 457 |
452 ; On x86_32, this function does the register saving and restoring for all of fft. | 458 ; On x86_32, this function does the register saving and restoring for all of fft. |
453 ; The others pass args in registers and don't spill anything. | 459 ; The others pass args in registers and don't spill anything. |
454 cglobal fft_dispatch%3%2, 2,5,0, z, nbits | 460 cglobal fft_dispatch%3%2, 2,5,0, z, nbits |
455 lea r2, [dispatch_tab%3%2 GLOBAL] | 461 lea r2, [dispatch_tab%3%2 GLOBAL] |