Fix stack offset for r19 load in __getcontext.
authorJohn David Anglin <danglin@gcc.gnu.org>
Sun, 16 Jul 2017 16:24:30 +0000 (12:24 -0400)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sun, 16 Jul 2017 16:24:30 +0000 (12:24 -0400)
ChangeLog
sysdeps/unix/sysv/linux/hppa/getcontext.S

index a1720fc..a4a4134 100644 (file)
--- 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.
index 6f52f21..2d7529b 100644 (file)
@@ -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