mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 09:12:33 +00:00
avcodec/ppc/asm: fix build with ABI v2
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
b82274487b
commit
41b928c5fa
@ -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…
Reference in New Issue
Block a user