about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2017-07-16 12:24:30 -0400
committerJohn David Anglin <danglin@gcc.gnu.org>2017-07-16 12:24:30 -0400
commitcc407f4e81070d2db7ddc8a0528bb40bbe9d2a13 (patch)
tree37755c3e27e7ff8c120fe217b073ecb573888f87
parent07f94b7a96392c8609ac8d29956728d9017e6e8a (diff)
downloadglibc-cc407f4e81070d2db7ddc8a0528bb40bbe9d2a13.tar.gz
glibc-cc407f4e81070d2db7ddc8a0528bb40bbe9d2a13.tar.xz
glibc-cc407f4e81070d2db7ddc8a0528bb40bbe9d2a13.zip
Fix stack offset for r19 load in __getcontext.
-rw-r--r--ChangeLog3
-rw-r--r--sysdeps/unix/sysv/linux/hppa/getcontext.S2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a1720fc705..a4a41341d6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2017-07-16  John David Anglin  <danglin@gcc.gnu.org>
 
+	* 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