[x264-devel] [PATCH] ARM: align asm functions to 4 bytes

Mans Rullgard mans at mansr.com
Tue Jan 31 17:19:28 CET 2012


Some linkers apparently fail to correctly align ARM functions
when mixing with Thumb code.  Give them a hand.
---
 common/arm/asm.S |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/common/arm/asm.S b/common/arm/asm.S
index 8e70403..4220663 100644
--- a/common/arm/asm.S
+++ b/common/arm/asm.S
@@ -48,6 +48,7 @@ ELF     .eabi_attribute 25, \val
 
         .macro function name
         .global EXTERN_ASM\name
+        .align  2
 EXTERN_ASM\name:
 ELF     .hidden \name
 ELF     .type   \name, %function
-- 
1.7.8.4



More information about the x264-devel mailing list