From: Adhemerval Zanella Date: Wed, 25 Sep 2013 18:43:04 +0000 (-0500) Subject: PowerPC: Fix POINTER_CHK_GUARD thread register for PPC64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d128971aa2bc7d7a0b7aaed8c3f546d1d5cc858b;p=thirdparty%2Fglibc.git PowerPC: Fix POINTER_CHK_GUARD thread register for PPC64 --- diff --git a/ChangeLog b/ChangeLog index 9698a1d55a1..d5f760b3dd5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-09-25 Adhemerval Zanella + + * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD: + Fix thread ID register. + 2013-09-11 Will Newton [BZ #15857] diff --git a/sysdeps/powerpc/powerpc64/stackguard-macros.h b/sysdeps/powerpc/powerpc64/stackguard-macros.h index 4620f96b864..e80a683e64d 100644 --- a/sysdeps/powerpc/powerpc64/stackguard-macros.h +++ b/sysdeps/powerpc/powerpc64/stackguard-macros.h @@ -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)) \ ); \