Skip to content

Commit

Permalink
Properly terminate FDE in makecontext for m68k (bug 18635)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schwab committed Aug 5, 2015
1 parent 72354ab commit bb1d31d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2015-08-05 Andreas Schwab <schwab@linux-m68k.org>

[BZ #18635]
* sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
before return label.

2015-08-05 H.J. Lu <hongjiu.lu@intel.com>

[BZ #18661]
Expand Down
5 changes: 4 additions & 1 deletion sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,11 @@ ENTRY(__makecontext)
have to install the context listed in the uc_link element of
the context 'makecontext' manipulated at the time of the
'makecontext' call. If the pointer is NULL the process must
terminate. */
terminate.
Make sure to separate the return label from the previous unwind
region, because the unwinder uses ra-1 to find the FDE. */
cfi_endproc
nop
1:
/* This removes the parameters passed to the function given to
'makecontext' from the stack. D7 contains the number of
Expand Down

0 comments on commit bb1d31d

Please sign in to comment.