summaryrefslogtreecommitdiff
path: root/libavcodec/ppc
diff options
context:
space:
mode:
authorThierry Fauck <thierry@linux.vnet.ibm.com>2014-05-29 15:22:27 +0300
committerMartin Storsjö <martin@martin.st>2014-05-30 22:46:53 +0300
commitd6d767d93e532246cacf3567e6bcad76a821f838 (patch)
treed881327c644474257886d99c594f648a120cdb5d /libavcodec/ppc
parentabb810db036628e11a5171134ebe320b187ee6d6 (diff)
ppc: Fix compilation for ppc64le (ELFv2)
CC: libav-stable@libav.org 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