avcodec/ppc/asm: fix build with ABI v2

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/68/head
Thierry FAUCK 11 years ago committed by Michael Niedermayer
parent b82274487b
commit 41b928c5fa
  1. 8
      libavcodec/ppc/asm.S

@ -36,12 +36,20 @@
.macro extfunc name .macro extfunc name
.global X(\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" .section .opd, "aw"
X(\name): X(\name):
.quad L(\name), .TOC.@tocbase, 0 .quad L(\name), .TOC.@tocbase, 0
.previous .previous
.type X(\name), STT_FUNC .type X(\name), STT_FUNC
L(\name): L(\name):
#endif
.endm .endm
.macro movrel rd, sym, gp .macro movrel rd, sym, gp

Loading…
Cancel
Save