OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
093768c
)
ppc32: Fix movrel
author
Kim Nguyen
<kim@nguyen.vg>
Mon, 20 Jun 2011 22:18:54 +0000
(
00:18
+0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 21 Jun 2011 01:06:54 +0000
(
03:06
+0200)
Fixes ticket272
libavcodec/ppc/asm.S
patch
|
blob
|
history
diff --git
a/libavcodec/ppc/asm.S
b/libavcodec/ppc/asm.S
index
e372d53
..
2706d6b
100644
(file)
--- 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@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)