[FFmpeg-cvslog] ARM: fix Thumb PIC on Apple
Mans Rullgard
git at videolan.org
Tue Oct 2 20:07:46 CEST 2012
ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Tue Oct 2 00:32:24 2012 +0100| [7bda4ed780c23c4bd50cf9ccd91f235e67ab0eae] | committer: Mans Rullgard
ARM: fix Thumb PIC on Apple
LDR with register offset and PC as base register is not available in
the Thumb instruction set so the addition must be done separately.
Signed-off-by: Mans Rullgard <mans at mansr.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7bda4ed780c23c4bd50cf9ccd91f235e67ab0eae
---
libavutil/arm/asm.S | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavutil/arm/asm.S b/libavutil/arm/asm.S
index ce7f46d..50305f7 100644
--- a/libavutil/arm/asm.S
+++ b/libavutil/arm/asm.S
@@ -141,7 +141,9 @@ ELF .size \name, . - \name
ldr \rd, .Lpicoff\@
.Lpic\@:
.if \indir
- ldr \rd, [pc, \rd]
+A ldr \rd, [pc, \rd]
+T add \rd, pc
+T ldr \rd, [\rd]
.else
add \rd, pc
.endif
More information about the ffmpeg-cvslog
mailing list