Fix SS_ONSTACK support
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 5 Feb 2019 18:55:42 +0000 (18:55 +0000)
committerAurelien Jarno <aurel32@debian.org>
Tue, 5 Feb 2019 18:55:42 +0000 (18:55 +0000)
commitee6bfa33465c01a30dc76f64c987b43efb5dc526
tree555daf9cc05e4ab63aa996372c00554d6265c2b7
parentef3dd4a87155b0e908f9c5841b7f7394fd64e2f7
Fix SS_ONSTACK support

* sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn2): New function,
unlocks SS and returns to the saved PC.
(__sigreturn): Do not unlock SS, and "return" into __sigreturn2 on the
thread stack instead of the saved PC.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name tg-ONSTACK.diff
sysdeps/mach/hurd/i386/sigreturn.c