[prev in list] [next in list] [prev in thread] [next in thread] 

List:       glibc-cvs
Subject:    GNU C Library master sources branch master updated. glibc-2.26-429-g388784c
From:       danglin () sourceware ! org
Date:       2017-09-30 23:05:59
Message-ID: 20170930230559.60407.qmail () sourceware ! org
[Download RAW message or body]

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  388784cfddc20ada56d3e52f830d6445b14aa3af (commit)
      from  2000067a4be0dc8a70f6d3704a9e8388eb9066c9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=388784cfddc20ada56d3e52f830d6445b14aa3af

commit 388784cfddc20ada56d3e52f830d6445b14aa3af
Author: John David Anglin <danglin@gcc.gnu.org>
Date:   Sat Sep 30 19:02:57 2017 -0400

    Fix hppa text relocations in libc.so
    
    	[BZ libc/22165]
    	* sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
    	code to load address of __getcontext_ret when generating PIC code.

diff --git a/ChangeLog b/ChangeLog
index 37cd690..f639d0a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
+
+	[BZ libc/22165]
+	* sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
+	code to load address of __getcontext_ret when generating PIC code.
+
 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
 
 	* elf/Makefile (tests-static-internal): Add
diff --git a/sysdeps/unix/sysv/linux/hppa/getcontext.S b/sysdeps/unix/sysv/linux/hppa/getcontext.S
index 68a74a0..b201d8f 100644
--- a/sysdeps/unix/sysv/linux/hppa/getcontext.S
+++ b/sysdeps/unix/sysv/linux/hppa/getcontext.S
@@ -145,8 +145,13 @@ ENTRY(__getcontext)
 	stw	%r4, oR24(%r26)
 	stw	%r5, oR25(%r26)
 	stw	%r6, oR26(%r26)
+#ifdef PIC
+	addil	LT%__getcontext_ret, %r19
+	ldw     RT%__getcontext_ret(%r1), %r1
+#else
 	ldil	L%__getcontext_ret, %r1
 	ldo     R%__getcontext_ret(%r1), %r1
+#endif
 	stw	%r1, oR2(%r26)
 
 	/* Save the current signal mask.  */

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                                 |    6 ++++++
 sysdeps/unix/sysv/linux/hppa/getcontext.S |    5 +++++
 2 files changed, 11 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic