Blame SOURCES/glibc-ppc64le-37.patch

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