x86: fft: elf64: fix PIC build
authorMans Rullgard <mans@mansr.com>
Mon, 25 Jun 2012 14:25:55 +0000 (15:25 +0100)
committerMans Rullgard <mans@mansr.com>
Mon, 25 Jun 2012 21:58:18 +0000 (22:58 +0100)
In a 64-bit PIC build, external functions must be called
through the PLT.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavcodec/x86/fft_mmx.asm

index 5143611..007f5ca 100644 (file)
@@ -647,7 +647,11 @@ cglobal fft_permute, 2,7,1
     add     rsp, 8
     RET
 %elif ARCH_X86_64
+%ifdef PIC
+    jmp     memcpy wrt ..plt
+%else
     jmp     memcpy
+%endif
 %else
     push    r2
     push    r5