[FFmpeg-cvslog] ppc32: Fix movrel
Kim Nguyen
git at videolan.org
Tue Jun 21 03:22:02 CEST 2011
ffmpeg | branch: master | Kim Nguyen <kim at nguyen.vg> | Tue Jun 21 00:18:54 2011 +0200| [2d16394f972dca8cc5e5b5bf9ab0b343a6239b76] | committer: Michael Niedermayer
ppc32: Fix movrel
Fixes ticket272
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2d16394f972dca8cc5e5b5bf9ab0b343a6239b76
---
libavcodec/ppc/asm.S | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/libavcodec/ppc/asm.S b/libavcodec/ppc/asm.S
index e372d53..2706d6b 100644
--- a/libavcodec/ppc/asm.S
+++ b/libavcodec/ppc/asm.S
@@ -67,7 +67,11 @@ X(\name):
.macro movrel rd, sym
#if CONFIG_PIC
- lwz \rd, \sym at 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 at ha
la \rd, \sym at l(\rd)
More information about the ffmpeg-cvslog
mailing list