aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-12-21 03:15:38 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-12-21 03:17:00 +0100
commite0aec6c83374286ffac44ee1b0e628894b7102e3 (patch)
treec7a8c5eb3f4ccf9d44f3caaf1cac42566f3c5097
parent5c06743c8a6f2184fbd3792b13dffa30f473b7b7 (diff)
downloadglibc-e0aec6c83374286ffac44ee1b0e628894b7102e3.zip
glibc-e0aec6c83374286ffac44ee1b0e628894b7102e3.tar.gz
glibc-e0aec6c83374286ffac44ee1b0e628894b7102e3.tar.bz2
hurd: Make trampoline fill siginfo ss_sp from sc_uesp
Mach actually rather fills the uesp field, not esp.
-rw-r--r--sysdeps/mach/hurd/i386/trampoline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/i386/trampoline.c b/sysdeps/mach/hurd/i386/trampoline.c
index 4a9cab1..1777d07 100644
--- a/sysdeps/mach/hurd/i386/trampoline.c
+++ b/sysdeps/mach/hurd/i386/trampoline.c
@@ -63,7 +63,7 @@ static void fill_ucontext (ucontext_t *uc, const struct sigcontext *sc)
uc->uc_flags = 0;
uc->uc_link = NULL;
uc->uc_sigmask = sc->sc_mask;
- uc->uc_stack.ss_sp = (__ptr_t) sc->sc_esp;
+ uc->uc_stack.ss_sp = (__ptr_t) sc->sc_uesp;
uc->uc_stack.ss_size = 0;
uc->uc_stack.ss_flags = 0;