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>
This commit is contained in:
Mans Rullgard 2012-06-25 15:25:55 +01:00 committed by Nicolas George
parent d4c45b8adf
commit 37c3864ef7
1 changed files with 4 additions and 0 deletions

View File

@ -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