Commit 41b928c5 authored by Thierry FAUCK's avatar Thierry FAUCK Committed by Michael Niedermayer

avcodec/ppc/asm: fix build with ABI v2

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b8227448
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment