Here is a patch for the ABI v2:
--- libav-9.10.orig/libavcodec/ppc/asm.S +++ libav-9.10/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
Here is a patch for the ABI v2:
--- libav-9. 10.orig/ libavcodec/ ppc/asm. S 10/libavcodec/ ppc/asm. S
+++ libav-9.
@@ -36,12 +36,20 @@
.macro extfunc name .TOC.-X( \name)@ ha .TOC.-X( \name)@ l
.global X(\name)
+#if _CALL_ELF == 2
+ .text
+X(\name):
+ addis %r2,%r12,
+ addi %r2,%r2,
+ .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