diff options
author | Mans Rullgard <mans@mansr.com> | 2012-06-25 18:25:55 +0400 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2012-06-26 17:57:32 +0400 |
commit | 37c3864ef7f619517f219ecbbdf6b90ca378d21d (patch) | |
tree | 082eb13865182d20ec4d11c00a9f1974330e74d6 /libavcodec/x86 | |
parent | d4c45b8adfbd57853ef5eafdbf46adc1bbd7654d (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.asm | 4 |
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 |