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