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 <[email protected]> --- libavcodec/arm/asm.S | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/libavcodec/arm/asm.S b/libavcodec/arm/asm.S index aaf497e..3b495a2 100644 --- a/libavcodec/arm/asm.S +++ b/libavcodec/arm/asm.S @@ -68,6 +68,7 @@ ELF .size \name, . - \name .purgem endfunc .endm .text + .align 2 .if \export .global EXTERN_ASM\name EXTERN_ASM\name: -- 1.7.8.3 _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
