From 967705fee12b4c02456fedbeb4c0dc6e79469ca7 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Sat, 23 Jun 2012 11:47:39 +0200 Subject: SH: ABORT_INSTRUCTION. --- sysdeps/unix/sysv/linux/sh/makecontext.S | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sysdeps/unix/sysv/linux/sh') diff --git a/sysdeps/unix/sysv/linux/sh/makecontext.S b/sysdeps/unix/sysv/linux/sh/makecontext.S index a847bb60b6..ec9ce91693 100644 --- a/sysdeps/unix/sysv/linux/sh/makecontext.S +++ b/sysdeps/unix/sysv/linux/sh/makecontext.S @@ -17,6 +17,7 @@ . */ #include +#include #include "ucontext_i.h" @@ -124,9 +125,9 @@ ENTRY(__makecontext) #endif jsr @r1 mov r0, r4 -0: - bra 0b - nop + /* The 'exit' call should never return. In case it does cause the + process to terminate. */ + ABORT_INSTRUCTION_ASM .align 2 #ifdef PIC -- cgit 1.4.1