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>
This commit is contained in:
parent
0cc1a86dc3
commit
5c5e1ea3cd
@ -68,6 +68,7 @@ ELF .size \name, . - \name
|
|||||||
.purgem endfunc
|
.purgem endfunc
|
||||||
.endm
|
.endm
|
||||||
.text
|
.text
|
||||||
|
.align 2
|
||||||
.if \export
|
.if \export
|
||||||
.global EXTERN_ASM\name
|
.global EXTERN_ASM\name
|
||||||
EXTERN_ASM\name:
|
EXTERN_ASM\name:
|
||||||
|
Loading…
Reference in New Issue
Block a user