Skip to content

Commit

Permalink
BUILD: Add fix for "Illegal instruction: 4" on iPhone 5 and iPad 4.
Browse files Browse the repository at this point in the history
This binary patch fix is intended to allow testing in the interim on
A6/A6X devices until the OSX porter updates the toolchains to cope with
the newer iOS devices.
  • Loading branch information
digitall committed Mar 10, 2013
1 parent b4d6d44 commit 27abec4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ports.mk
Expand Up @@ -86,6 +86,12 @@ endif
cp $(srcdir)/dists/iphone/icon.png $(bundle_name)/
cp $(srcdir)/dists/iphone/icon-72.png $(bundle_name)/
cp $(srcdir)/dists/iphone/Default.png $(bundle_name)/
# Binary patch workaround for Iphone 5/IPad 4 "Illegal instruction: 4" toolchain issue (http://code.google.com/p/iphone-gcc-full/issues/detail?id=6)
cp scummvm scummvm-iph5
sed -i'' 's/\x00\x30\x93\xe4/\x00\x30\x93\xe5/g;s/\x00\x30\xd3\xe4/\x00\x30\xd3\xe5/g;' scummvm-iph5
ldid -S scummvm-iph5
chmod 755 scummvm-iph5
cp scummvm-iph5 $(bundle_name)/ScummVM-iph5

# Location of static libs for the iPhone
ifneq ($(BACKEND), iphone)
Expand Down

0 comments on commit 27abec4

Please sign in to comment.