avcodec/ppc/asm: fix build with ABI v2

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Thierry FAUCK 2014-05-19 22:03:28 +02:00 committed by Michael Niedermayer
parent b82274487b
commit 41b928c5fa

View File

@ -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