ARM: align asm functions to 4 bytes.
authorMans Rullgard <mans@mansr.com>
Wed, 1 Feb 2012 23:55:25 +0000 (15:55 -0800)
committerJason Garrett-Glaser <jason@x264.com>
Sat, 4 Feb 2012 15:16:31 +0000 (07:16 -0800)
Some linkers apparently fail to correctly align ARM functions when mixing with Thumb code.

common/arm/asm.S

index 8e70403..4220663 100644 (file)
@@ -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