From: Jay Freeman (saurik) Date: Sat, 22 Jun 2013 11:46:58 +0000 (-0700) Subject: Make the ARM thread setup code match i386/x86_64. X-Git-Tag: v0.9.500%b1~55 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/3bf9dd699d2eebe6723c9b06d2bfd541094205cd Make the ARM thread setup code match i386/x86_64. --- diff --git a/Mach/Inject.cpp b/Mach/Inject.cpp index 6e5f69d..64414e7 100644 --- a/Mach/Inject.cpp +++ b/Mach/Inject.cpp @@ -141,8 +141,8 @@ void InjectLibrary(pid_t pid) { } #elif defined(__arm__) state.__r[0] = data; - state.__sp = stack + Stack_; state.__pc = code + trampoline->entry_; + state.__sp = stack + Stack_ - sizeof(frame); if ((state.__pc & 0x1) != 0) { state.__pc &= ~0x1;