[FFmpeg-cvslog] ARM: align PIC offset pools to 4 bytes
Mans Rullgard
git at videolan.org
Fri Sep 21 14:48:53 CEST 2012
ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Thu Sep 20 22:53:41 2012 +0100| [cdb7db5acdefbb976e3004e87b8f0078d40d068f] | committer: Mans Rullgard
ARM: align PIC offset pools to 4 bytes
When building Thumb2 code, the end of a function, where the PIC
offsets are placed, need not be aligned. Although the values
are only accessed with instructions allowing unaligned addresses,
keeping them aligned is preferable.
Signed-off-by: Mans Rullgard <mans at mansr.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cdb7db5acdefbb976e3004e87b8f0078d40d068f
---
libavutil/arm/asm.S | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavutil/arm/asm.S b/libavutil/arm/asm.S
index 45e4aab..b30f9b1 100644
--- a/libavutil/arm/asm.S
+++ b/libavutil/arm/asm.S
@@ -66,6 +66,7 @@ ELF .eabi_attribute 25, \val
.set .Lpic_gp, 0
.macro endfunc
.if .Lpic_idx
+ .align 2
.altmacro
put_pic %(.Lpic_idx - 1)
.noaltmacro
More information about the ffmpeg-cvslog
mailing list