Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-06-25 18:25:55 +0400
committerNicolas George <nicolas.george@normalesup.org>2012-06-26 17:57:32 +0400
commit37c3864ef7f619517f219ecbbdf6b90ca378d21d (patch)
tree082eb13865182d20ec4d11c00a9f1974330e74d6 /libavcodec/x86
parentd4c45b8adfbd57853ef5eafdbf46adc1bbd7654d (diff)
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>
Diffstat (limited to 'libavcodec/x86')
-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