[FFmpeg-cvslog] avcodec/ppc/asm: fix build with ABI v2
Thierry FAUCK
git at videolan.org
Mon May 19 22:11:53 CEST 2014
ffmpeg | branch: master | Thierry FAUCK <thierry at linux.vnet.ibm.com> | Mon May 19 22:03:28 2014 +0200| [41b928c5fad7d4ed8477b68cb0c2d54a70b0afac] | committer: Michael Niedermayer
avcodec/ppc/asm: fix build with ABI v2
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=41b928c5fad7d4ed8477b68cb0c2d54a70b0afac
---
libavcodec/ppc/asm.S | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/libavcodec/ppc/asm.S b/libavcodec/ppc/asm.S
index bbbf8a4..b57de2e 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 \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