[FFmpeg-cvslog] ppc: Fix compilation for ppc64le (ELFv2)
Thierry Fauck
git at videolan.org
Fri May 30 23:24:17 CEST 2014
ffmpeg | branch: master | Thierry Fauck <thierry at linux.vnet.ibm.com> | Thu May 29 15:22:27 2014 +0300| [d6d767d93e532246cacf3567e6bcad76a821f838] | committer: Martin Storsjö
ppc: Fix compilation for ppc64le (ELFv2)
CC: libav-stable at libav.org
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d6d767d93e532246cacf3567e6bcad76a821f838
---
libavcodec/ppc/asm.S | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/libavcodec/ppc/asm.S b/libavcodec/ppc/asm.S
index 4d4285b..141dee9 100644
--- a/libavcodec/ppc/asm.S
+++ b/libavcodec/ppc/asm.S
@@ -36,12 +36,20 @@
.macro extfunc name
.global X(\name)
+#if _CALL_ELF == 2
+ .text
+X(\name):
+ addis %r2, %r12, .TOC.-X(\name)@ha
+ addi %r2, %r2, .TOC.-X(\name)@l
+ .localentry X(\name), .-X(\name)
+#else
.section .opd, "aw"
X(\name):
.quad L(\name), .TOC. at tocbase, 0
.previous
.type X(\name), STT_FUNC
L(\name):
+#endif
.endm
.macro movrel rd, sym, gp
More information about the ffmpeg-cvslog
mailing list