Fix SS_ONSTACK support
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 28 Feb 2019 05:56:01 +0000 (05:56 +0000)
committerSamuel Thibault <sthibault@debian.org>
Thu, 28 Feb 2019 05:56:01 +0000 (05:56 +0000)
commitaf6eaf5e92541a3eb46dc667d4703fb47cf8dc32
tree26702170822fbf24cb74ad1169aed1f439b7d07b
parentd0e4fdcf78b4bfd8178d81693d089c0c38679f98
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