From 3bf9dd699d2eebe6723c9b06d2bfd541094205cd Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 22 Jun 2013 04:46:58 -0700 Subject: [PATCH] Make the ARM thread setup code match i386/x86_64. --- Mach/Inject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.49.0