[x264-devel] Building x264 for iPhoneOS5.0 using ARM NEON extensions

David Liepelt dl030 at hdm-stuttgart.de
Tue Jan 31 17:10:05 CET 2012


Thanks! This actually solved the problem.



On 31.01.2012, at 10:50, Måns Rullgård <mans at mansr.com> wrote:

> David Liepelt <dl030 at hdm-stuttgart.de> writes:
> 
>> After a little bit of research I could build x264 for iOS 5
>> successfully. Without inline assembly (--disable-asm) everything works
>> fine but of course very slow due to missing hardware support. When
>> inline assembly is enabled the linker warns "ld: warning: ARM function
>> not 4-byte aligned:" Ignoring this message and using the library
>> anyway leads to a crash (SIGSYS) while initialization. Anyone know how
>> to fix this?
> 
> Try this patch:
> 
> 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
> 
> -- 
> Måns Rullgård
> mans at mansr.com
> _______________________________________________
> x264-devel mailing list
> x264-devel at videolan.org
> http://mailman.videolan.org/listinfo/x264-devel


More information about the x264-devel mailing list