2
Description: ppc: Fix compilation for ppc64le
3
Origin: upstream, http://patches.libav.org/patch/50835/
6
https://bugs.launchpad.net/ubuntu/+source/libav/+bug/1263802,
7
with some minor fixups.
9
This fixes compilation for this target (tested with a cross compiler),
10
but it's completely untested in practice so far (qemu doesn't support
11
it yet, and I don't have any such hardware to test it on).
13
libavcodec/ppc/asm.S | 8 ++++++++
14
1 file changed, 8 insertions(+)
16
diff --git a/libavcodec/ppc/asm.S b/libavcodec/ppc/asm.S
17
index 4d4285b..141dee9 100644
18
--- a/libavcodec/ppc/asm.S
19
+++ b/libavcodec/ppc/asm.S
27
+ addis %r2, %r12, .TOC.-X(\name)@ha
28
+ addi %r2, %r2, .TOC.-X(\name)@l
29
+ .localentry X(\name), .-X(\name)
33
.quad L(\name), .TOC.@tocbase, 0
35
.type X(\name), STT_FUNC
40
.macro movrel rd, sym, gp