On Mon, 25 Jun 2012, Mans Rullgard wrote:

In a 64-bit PIC build, external functions must be called
through the PLT.

Signed-off-by: Mans Rullgard <[email protected]>
---
This applies on top of the previous (win64 fix) patch.
---
libavcodec/x86/fft_mmx.asm |    4 ++++
1 file changed, 4 insertions(+)

diff --git a/libavcodec/x86/fft_mmx.asm b/libavcodec/x86/fft_mmx.asm
index 5143611..007f5ca 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
--
1.7.10.2

Seems to do what it says, so ok for me.

// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to