public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [committed] Fix PIC (r19) register load in __getcontext
@ 2017-07-16 17:22 John David Anglin
  0 siblings, 0 replies; only message in thread
From: John David Anglin @ 2017-07-16 17:22 UTC (permalink / raw)
  To: GNU C Library; +Cc: Carlos O'Donell

[-- Attachment #1: Type: text/plain, Size: 107 bytes --]

The PIC register was being loaded from the wrong offset.

Dave
--
John David Anglin	dave.anglin@bell.net



[-- Attachment #2: getcontext.S.d.txt --]
[-- Type: text/plain, Size: 571 bytes --]

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 --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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-07-16 17:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-16 17:22 [committed] Fix PIC (r19) register load in __getcontext John David Anglin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).