diff mbox

[committed] Fix PIC (r19) register load in __getcontext

Message ID A5B61CAA-4183-46B6-8AD2-DC6E268B1A57@bell.net
State New
Headers show

Commit Message

John David Anglin July 16, 2017, 5:22 p.m. UTC
The PIC register was being loaded from the wrong offset.

Dave
--
John David Anglin	dave.anglin@bell.net
2017-07-16  John David Anglin  <danglin@gcc.gnu.org>

	* sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Fix stack
	offset for r19 load.
diff mbox

Patch

diff --git a/sysdeps/unix/sysv/linux/hppa/getcontext.S b/sysdeps/unix/sysv/linux/hppa/getcontext.S
index 6f52f2149d..68a74a0b7e 100644
--- a/sysdeps/unix/sysv/linux/hppa/getcontext.S
+++ b/sysdeps/unix/sysv/linux/hppa/getcontext.S
@@ -156,7 +159,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