aboutsummaryrefslogtreecommitdiff
path: root/libgcc/config/mips/linux-unwind.h
diff options
context:
space:
mode:
Diffstat (limited to 'libgcc/config/mips/linux-unwind.h')
-rw-r--r--libgcc/config/mips/linux-unwind.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libgcc/config/mips/linux-unwind.h b/libgcc/config/mips/linux-unwind.h
index a009797195c..92c2941ef42 100644
--- a/libgcc/config/mips/linux-unwind.h
+++ b/libgcc/config/mips/linux-unwind.h
@@ -51,6 +51,11 @@ mips_fallback_frame_state (struct _Unwind_Context *context,
_Unwind_Ptr new_cfa, reg_offset;
int i;
+ /* A MIPS16 or microMIPS frame. Signal frames always use the standard
+ ISA encoding. */
+ if ((_Unwind_Ptr) pc & 3)
+ return _URC_END_OF_STACK;
+
/* 24021061 li v0, 0x1061 (rt_sigreturn)*/
/* 0000000c syscall */
/* or */