Browse Source

ppc32: Fix movrel

Fixes ticket272
tags/n0.8
Kim Nguyen Michael Niedermayer 14 years ago
parent
commit
2d16394f97
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      libavcodec/ppc/asm.S

+ 5
- 1
libavcodec/ppc/asm.S View File

@@ -67,7 +67,11 @@ X(\name):

.macro movrel rd, sym
#if CONFIG_PIC
lwz \rd, \sym@got(r2)
bcl 20, 31, lab_pic_\@
lab_pic_\@:
mflr \rd
addis \rd, \rd, (\sym - lab_pic_\@)@ha
addi \rd, \rd, (\sym - lab_pic_\@)@l
#else
lis \rd, \sym@ha
la \rd, \sym@l(\rd)


Loading…
Cancel
Save