[x264-devel] Building x264 for iPhoneOS5.0 using ARM NEON extensions
Måns Rullgård
mans at mansr.com
Tue Jan 31 10:50:32 CET 2012
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
More information about the x264-devel
mailing list