[committed] hppa: Save return pointer and correct PIC register restore in __getcontext and __setcontext

John David Anglin dave.anglin@bell.net
Sun Oct 1 16:16:00 GMT 2017


In fixing BZ libc/22165, I noticed a couple of issues with __getcontext and __setcontext.  We don't
save the return pointer in either of these routines.  Thus, if the epilogue is entered, we will likely fault
or return to the wrong location.  Secondly, the PIC register, %r19, is restored from the wrong offset
in __setcontext.

The attached patch fixes these issues.  However, stdlib/tst-setcontext2 still fails.

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


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: context.S.d.txt
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20171001/284c349d/attachment.txt>


More information about the Libc-alpha mailing list