Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Fauck <thierry@linux.vnet.ibm.com>2014-05-29 16:22:27 +0400
committerMartin Storsjö <martin@martin.st>2014-05-30 23:56:02 +0400
commit0ec75a04e5fc714bc3cd6e2a6b783e6df834ad01 (patch)
tree9e443f662f1de78cd89b84d747ae2fd4c67db10e /libavcodec/ppc
parent34fb994d9340313b0d247899a4a7a97cc010df92 (diff)
ppc: Fix compilation for ppc64le (ELFv2)
CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st> (cherry picked from commit d6d767d93e532246cacf3567e6bcad76a821f838) Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/ppc')
-rw-r--r--libavcodec/ppc/asm.S8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/ppc/asm.S b/libavcodec/ppc/asm.S
index 4d4285b6d3..141dee9b78 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.@tocbase, 0
.previous
.type X(\name), STT_FUNC
L(\name):
+#endif
.endm
.macro movrel rd, sym, gp