• Mans Rullgard's avatar
    ppc: fix 32-bit PIC build · 6e4a35ce
    Mans Rullgard authored
    On 32-bit ppc, the GOT pointer must be loaded manually.
    This adds a "get_got" assembler macro to compute the
    GOT address.  The "movrel" macro is updated to take an
    additional parameter containing the GOT address since
    no register is reserved for this purpose on ppc32.
    These changes have no effect on ppc64 builds.
    Signed-off-by: 's avatarMans Rullgard <mans@mansr.com>
    6e4a35ce
asm.S 2.44 KB