Fix SS_ONSTACK support
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 9 Feb 2019 17:34:27 +0000 (17:34 +0000)
committerSamuel Thibault <sthibault@debian.org>
Sat, 9 Feb 2019 17:34:27 +0000 (17:34 +0000)
commitdc7e90e282536c141a19052e91ea3a3c05cedff8
treeb186dd0a7e1454e2cc8ec692754518f9cb7989c7
parent5d4d4866436b018fb8f5180b48eeabb7a97c27dd
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