From cc407f4e81070d2db7ddc8a0528bb40bbe9d2a13 Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Sun, 16 Jul 2017 12:24:30 -0400 Subject: [PATCH] Fix stack offset for r19 load in __getcontext. --- ChangeLog | 3 +++ sysdeps/unix/sysv/linux/hppa/getcontext.S | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a1720fc705..a4a41341d6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2017-07-16 John David Anglin + * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Fix stack + offset for r19 load. + * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Return 0. * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Fix CFA offset. diff --git a/sysdeps/unix/sysv/linux/hppa/getcontext.S b/sysdeps/unix/sysv/linux/hppa/getcontext.S index 6f52f2149d..2d7529b3e8 100644 --- a/sysdeps/unix/sysv/linux/hppa/getcontext.S +++ b/sysdeps/unix/sysv/linux/hppa/getcontext.S @@ -156,7 +156,7 @@ ENTRY(__getcontext) /* Epilogue */ ldw -84(%sp), %r2 #ifdef PIC - ldw -96(%sp), %r19 + ldw -32(%sp), %r19 #endif bv %r0(%r2) ldwm -64(%sp), %r4