aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-06-25 15:25:55 +0100
committerMans Rullgard <mans@mansr.com>2012-06-25 22:58:18 +0100
commit059533489250e58f1726ed2d1cb61869b2e00ed0 (patch)
treeadddf611a6aa31fc19a6fafd0e1426490af1d0a6 /libavcodec
parent246154a9aff222b80befd65faf97494ce9113306 (diff)
downloadffmpeg-059533489250e58f1726ed2d1cb61869b2e00ed0.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>
Diffstat (limited to 'libavcodec')
-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 5143611533..007f5caf77 100644
--- a/libavcodec/x86/fft_mmx.asm
+++ b/libavcodec/x86/fft_mmx.asm
@@ -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