From cdb7db5acdefbb976e3004e87b8f0078d40d068f Mon Sep 17 00:00:00 2001
From: Mans Rullgard <mans@mansr.com>
Date: Thu, 20 Sep 2012 22:53:41 +0100
Subject: [PATCH] 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@mansr.com>
---
 libavutil/arm/asm.S | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavutil/arm/asm.S b/libavutil/arm/asm.S
index 45e4aab77e3..b30f9b1bbbe 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
-- 
GitLab