diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2012-06-23 11:47:39 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2012-06-23 11:47:39 +0200 |
commit | 967705fee12b4c02456fedbeb4c0dc6e79469ca7 (patch) | |
tree | c4fa9875cec66046b7f721c4ebcfdfb7db694181 /sysdeps/unix/sysv/linux/sh/makecontext.S | |
parent | a9def8c49d22815801408e62bedca26810cfceb7 (diff) | |
download | glibc-967705fee12b4c02456fedbeb4c0dc6e79469ca7.tar.gz |
SH: ABORT_INSTRUCTION.
Diffstat (limited to 'sysdeps/unix/sysv/linux/sh/makecontext.S')
-rw-r--r-- | sysdeps/unix/sysv/linux/sh/makecontext.S | 7 |
1 files changed, 4 insertions, 3 deletions
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 @@ <http://www.gnu.org/licenses/>. */ #include <sysdep.h> +#include <abort-instr.h> #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 |