Browse code

ARM: 4-byte align start of all asm functions

Due to apprent bugs in the GNU assembler and/or linker, relocations
can be incorrectly processed if the alignment of a Thumb instruction
is changed in the output file compared to the input object.

This fixes crashes in h264 decoding with Thumb enabled. No effect in
ARM mode since everything is 4-byte aligned there.

Signed-off-by: Mans Rullgard <mans@mansr.com>

Mans Rullgard authored on 2012/01/14 03:56:36
Showing 1 changed files
... ...
@@ -68,6 +68,7 @@ ELF     .size   \name, . - \name
68 68
         .purgem endfunc
69 69
     .endm
70 70
         .text
71
+        .align          2
71 72
     .if \export
72 73
         .global EXTERN_ASM\name
73 74
 EXTERN_ASM\name: