Fix SS_ONSTACK support
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Fri, 9 Mar 2018 20:48:04 +0000 (20:48 +0000)
committerAurelien Jarno <aurel32@debian.org>
Fri, 9 Mar 2018 20:48:04 +0000 (20:48 +0000)
commite2e2a48e40a100f3710defdc718e610a545d970e
tree4322fdcd0cc8feaa8753c6267195cb93d406920d
parent81ed2a76a2eeac850cbe31da48d7dd790ad73e12
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