5de29b
# commit b525166bb93b060e1146f0263b76a9c1e7455b06
5de29b
# Author: Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5de29b
# Date:   Wed Dec 4 06:45:56 2013 -0600
5de29b
# 
5de29b
#     PowerPC64: Add __private_ss field to TCB header
5de29b
#     
5de29b
#     The TCB header on Intel contains a field __private_ss that is used
5de29b
#     to efficiently implement the -fsplit-stack GCC feature.
5de29b
#     
5de29b
#     In order to prepare for a possible future implementation of that
5de29b
#     feature on powerpc64, we'd like to reserve a similar field in
5de29b
#     the TCB header as well.  (It would be good if this went in with
5de29b
#     or before the ELFv2 patches to ensure that this field will be
5de29b
#     available always in the ELFv2 environment.)
5de29b
#     
5de29b
#     The field needs to be added at the front of tcbhead_t structure
5de29b
#     to avoid changing the ABI; see the recent discussion when adding
5de29b
#     the EBB fields.
5de29b
# 
12745e
diff -urN glibc-2.17-c758a686/nptl/sysdeps/powerpc/tls.h glibc-2.17-c758a686/nptl/sysdeps/powerpc/tls.h
12745e
--- glibc-2.17-c758a686/nptl/sysdeps/powerpc/tls.h	2014-05-29 13:19:25.000000000 -0500
12745e
+++ glibc-2.17-c758a686/nptl/sysdeps/powerpc/tls.h	2014-05-29 13:19:25.000000000 -0500
5de29b
@@ -61,6 +61,8 @@
5de29b
    are private.  */
5de29b
 typedef struct
5de29b
 {
5de29b
+  /* GCC split stack support.  */
5de29b
+  void *__private_ss;
5de29b
   /* Reservation for the Event-Based Branching ABI.  */
5de29b
   uintptr_t ebb_handler;
5de29b
   uintptr_t ebb_ctx_pointer;