From patchwork Sat Jan 2 16:34:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marcin_Ko=C5=9Bcielnicki?= X-Patchwork-Id: 10197 Received: (qmail 69858 invoked by alias); 2 Jan 2016 16:34:33 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 69835 invoked by uid 89); 2 Jan 2016 16:34:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=preparation, tcb, fsplit-stack, fsplitstack X-HELO: xyzzy.0x04.net From: =?UTF-8?q?Marcin=20Ko=C5=9Bcielnicki?= To: libc-alpha@sourceware.org Cc: =?UTF-8?q?Marcin=20Ko=C5=9Bcielnicki?= Subject: [PATCH] Add __private_ss to s390 struct tcbhead. Date: Sat, 2 Jan 2016 17:34:26 +0100 Message-Id: <1451752466-9429-1-git-send-email-koriakin@0x04.net> MIME-Version: 1.0 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. * sysdeps/s390/nptl/tls.h: Add __private_ss to struct tcbhead. --- ChangeLog | 4 ++++ sysdeps/s390/nptl/tls.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8c339d2..e39e2ce 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2015-01-02 Marcin Kościelnicki + + * sysdeps/s390/nptl/tls.h: Add __private_ss to struct tcbhead. + 2016-01-01 Mike Frysinger [BZ #15421] diff --git a/sysdeps/s390/nptl/tls.h b/sysdeps/s390/nptl/tls.h index 28a2119..0e61154 100644 --- a/sysdeps/s390/nptl/tls.h +++ b/sysdeps/s390/nptl/tls.h @@ -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__