Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix libffi link warnings 'ARM function not 4-byte aligned' when build…

… for ios.
  • Loading branch information...
commit e1c1c49dbecbc36af10f04d58cb2ec4cceaab38d 1 parent 8cf7f2a
@ulion ulion authored
View
21 tools/depends/target/libffi/01_ios_arm_align_fix.patch
@@ -0,0 +1,21 @@
+diff -ru iphoneos5.1_armv7-target/src/arm/sysv.S iphoneos5.1_armv7-target.patched/src/arm/sysv.S
+--- src/arm/sysv.S 2012-04-12 10:46:06.000000000 +0800
++++ src/arm/sysv.S 2013-03-15 09:43:06.000000000 +0800
+@@ -113,7 +113,7 @@
+ #if defined(__thumb__) && !defined(__THUMB_INTERWORK__)
+ .macro ARM_FUNC_START name
+ .text
+- .align 0
++ .align 2
+ .thumb
+ .thumb_func
+ #ifdef __APPLE__
+@@ -136,7 +136,7 @@
+ #else
+ .macro ARM_FUNC_START name
+ .text
+- .align 0
++ .align 2
+ .arm
+ #ifdef __APPLE__
+ ENTRY($0)
View
1  tools/depends/target/libffi/Makefile
@@ -20,6 +20,7 @@ $(TARBALLS_LOCATION)/$(ARCHIVE):
$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
+ cd $(PLATFORM); patch -p0 < ../01_ios_arm_align_fix.patch
cd $(PLATFORM); $(CONFIGURE)
$(LIBDYLIB): $(PLATFORM)
Please sign in to comment.
Something went wrong with that request. Please try again.