From 37c3864ef7f619517f219ecbbdf6b90ca378d21d Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Mon, 25 Jun 2012 15:25:55 +0100 Subject: [PATCH] x86: fft: elf64: fix PIC build In a 64-bit PIC build, external functions must be called through the PLT. Signed-off-by: Mans Rullgard --- libavcodec/x86/fft_mmx.asm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/x86/fft_mmx.asm b/libavcodec/x86/fft_mmx.asm index f1b7f2a515..2ff282d51c 100644 --- a/libavcodec/x86/fft_mmx.asm +++ b/libavcodec/x86/fft_mmx.asm @@ -648,7 +648,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