]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
PowerPC: Fix POINTER_CHK_GUARD thread register for PPC64
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Wed, 25 Sep 2013 18:43:04 +0000 (13:43 -0500)
committerMike Frysinger <vapier@gentoo.org>
Mon, 6 Jan 2014 13:43:31 +0000 (08:43 -0500)
(cherry picked from commit dc3a1f98dc4c86cb454474f4912ae325573655cb)

sysdeps/powerpc/powerpc64/stackguard-macros.h

index 4620f96b86423895e6ddddf4e2cad40ddecd2379..e80a683e64dc0e3cd5143da2e1000e7c8a5f6a30 100644 (file)
@@ -6,7 +6,7 @@
 #define POINTER_CHK_GUARD \
   ({                                                                                           \
      uintptr_t x;                                                                              \
-     asm ("ld %0,%1(2)"                                                                                \
+     asm ("ld %0,%1(13)"                                                                               \
          : "=r" (x)                                                                            \
          : "i" (offsetof (tcbhead_t, pointer_guard) - TLS_TCB_OFFSET - sizeof (tcbhead_t))     \
          );                                                                                    \