From 83913c329f47eaae597f01be948a125e81c10909 Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Thu, 24 Dec 2015 13:24:21 +0000 Subject: [PATCH] Fix the CFI directives in the MIPS objc_msgSend implementation. The frame adjustment was incorrect and there was nothing indicating where %ra was saved, which prevented unwinding. --- objc_msgSend.mips.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/objc_msgSend.mips.S b/objc_msgSend.mips.S index 5248d6c..df03249 100644 --- a/objc_msgSend.mips.S +++ b/objc_msgSend.mips.S @@ -153,7 +153,8 @@ lw $zero, ($zero) daddiu $a1, $a2, 0 # replace self with _cmd in $a1 .endif - .cfi_adjust_cfa_offset -SAVE_SIZE + .cfi_def_cfa_offset SAVE_SIZE + .cfi_offset 31, (64 - SAVE_SIZE) jalr $25 # Call the slow lookup function nop