about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul E. Murphy <murphyp@linux.vnet.ibm.com>2016-05-03 10:45:51 -0500
committerPaul E. Murphy <murphyp@linux.vnet.ibm.com>2016-05-03 10:45:51 -0500
commitcbc06bc486635347ee0da51d04a82eedf51602d5 (patch)
treeb4e6fdbaa309e919e94a5fc0d52d8320638fb4c8
parent35281b18b8f9907213410ebbebc23c71b2ec357a (diff)
downloadglibc-cbc06bc486635347ee0da51d04a82eedf51602d5.tar.gz
glibc-cbc06bc486635347ee0da51d04a82eedf51602d5.tar.xz
glibc-cbc06bc486635347ee0da51d04a82eedf51602d5.zip
powerpc: Add missing insn in swapcontext [BZ #20004]
A missing instruction was discovered in the compat version of
swapcontext while running the GCC test suite.
-rw-r--r--ChangeLog7
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S1
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a551f7086a..64d1bc722e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
+	    Segher Boessenkool  <segher@gcc.gnu.org>
+
+	[BZ #20004]
+	* sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
+	(__novec_swapcontext): Add missing load.
+
 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
 
 	[BZ #20023]
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S b/sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
index a166dcc53f..a05a9ccc89 100644
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
@@ -163,6 +163,7 @@ ENTRY(__novec_swapcontext)
   cmpdi r0,0
   bne	  L(nv_do_sigret)
 
+  ld	r8,.LC__dl_hwcap@toc(r2)
 # ifdef SHARED
 /* Load _rtld-global._dl_hwcap.  */
   ld    r8,RTLD_GLOBAL_RO_DL_HWCAP_OFFSET(r8)