From 66c4154b06796eb64bf8e177af5a3e4901586f2c Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Wed, 27 Jan 2016 19:40:33 +0000 Subject: [PATCH] Use bx for calling methods so that thumb / ARM interop should work. --- objc_msgSend.arm.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/objc_msgSend.arm.S b/objc_msgSend.arm.S index cfbde71..3f774e5 100644 --- a/objc_msgSend.arm.S +++ b/objc_msgSend.arm.S @@ -101,11 +101,11 @@ pop {r0-r4, lr} // Load clobbered registers mov \receiver, r5 pop {r4-r6} // Restore the saved callee-save registers - mov pc, ip + bx ip 4: // Nil receiver mov r0, 0 mov r1, 0 - mov pc, lr + bx lr .fnend .endm