Add __private_ss to s390 struct tcbhead.
authorMarcin Kościelnicki <koriakin@0x04.net>
Thu, 14 Jan 2016 15:48:55 +0000 (16:48 +0100)
committerStefan Liebler <stli@de.ibm.com>
Thu, 14 Jan 2016 15:48:55 +0000 (16:48 +0100)
Preparation for gcc -fsplit-stack support (gcc bug #68191).  The new
field is basically identical to the one on x86.  Its TCB offset needs
to be constant, as it'll be hardcoded in gcc.

ChangeLog:

* sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.

ChangeLog
sysdeps/s390/nptl/tls.h

index 2c261ca..424f731 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
+
+       * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
+
 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
 
        * benchtests/Makefile (PYTHON): Define.
index bc86931..e4c3ec7 100644 (file)
@@ -53,7 +53,11 @@ typedef struct
   int gscope_flag;
 #ifndef __ASSUME_PRIVATE_FUTEX
   int private_futex;
+#else
+  int __glibc_reserved1;
 #endif
+  /* GCC split stack support.  */
+  void *__private_ss;
 } tcbhead_t;
 
 # ifndef __s390x__