aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-06-25 15:25:55 +0100
committerNicolas George <nicolas.george@normalesup.org>2012-06-26 15:57:32 +0200
commit37c3864ef7f619517f219ecbbdf6b90ca378d21d (patch)
tree082eb13865182d20ec4d11c00a9f1974330e74d6
parentd4c45b8adfbd57853ef5eafdbf46adc1bbd7654d (diff)
downloadffmpeg-37c3864ef7f619517f219ecbbdf6b90ca378d21d.tar.gz
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 <mans@mansr.com>
-rw-r--r--libavcodec/x86/fft_mmx.asm4
1 files changed, 4 insertions, 0 deletions
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