summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorThierry FAUCK <thierry@linux.vnet.ibm.com>2014-05-19 22:03:28 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-19 22:10:01 +0200
commit41b928c5fad7d4ed8477b68cb0c2d54a70b0afac (patch)
tree2d31b93046dd5cbda05a849b8b78e3053c864aa2 /libavcodec
parentb82274487b239ac0e55f33ac13be397cb92e778b (diff)
avcodec/ppc/asm: fix build with ABI v2
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-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 bbbf8a4a66..b57de2eba0 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.@tocbase, 0
.previous
.type X(\name), STT_FUNC
L(\name):
+#endif
.endm
.macro movrel rd, sym, gp