Ticket #12634: ppc64el-abiv2.patch

File ppc64el-abiv2.patch, 1009 bytes (added by anonymous, 4 years ago)
  • mythtv/external/FFmpeg/libavcodec/ppc/asm.S

    From: martin@martin.st
    Description: ppc: Fix compilation for ppc64le
    Origin: upstream, http://patches.libav.org/patch/50835/
    
    Patch taken from
    https://bugs.launchpad.net/ubuntu/+source/libav/+bug/1263802,
    with some minor fixups.
    
    This fixes compilation for this target (tested with a cross compiler),
    but it's completely untested in practice so far (qemu doesn't support
    it yet, and I don't have any such hardware to test it on).
    
    old new  
    3636
    3737.macro extfunc name
    3838    .global X(\name)
     39#if _CALL_ELF == 2
     40    .text
     41X(\name):
     42    addis %r2, %r12, .TOC.-X(\name)@ha
     43    addi %r2, %r2, .TOC.-X(\name)@l
     44    .localentry X(\name), .-X(\name)
     45#else
    3946    .section .opd, "aw"
    4047X(\name):
    4148    .quad L(\name), .TOC.@tocbase, 0
    4249    .previous
    4350    .type X(\name), STT_FUNC
    4451L(\name):
     52#endif
    4553.endm
    4654
    4755.macro movrel rd, sym, gp