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: 562087 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 12F1A140AD9 for ; Sun, 3 Jan 2016 03:34:39 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b=AIKw2eP3; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=GZmzyf9FUKejIPw0UwZaKc4vylTuZN/oSWZG4TjoTMMaxNFeKgil2 zvycqkJVuftOMn0/YqlXLq3Uz/wyIMVmSXi3Vy2iqxaDJKlxNRctpRGjIcgmKpkT vJuhz+hGyklvcDtJDgbTlWiAYiu/6TZFGRp0IKSvB9dnY99LMSJWPQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-type:content-transfer-encoding; s=default; bh=FGemMrFyNFeg53Ia72iNRvNny0U=; b=AIKw2eP38kkA9cyKntiWxusemSA4 hMD9dHGp4vmtmZ9fzsQFojYV8D8rZHqpt26wZyNt/4YeSEjkkJV8QYO0FMFNpTOQ r68F22Ldq3bM5npja6M5C0q8Rfw83cMJTr2d6PodIuhQRW5zw8XVpnHVuPuAuTz1 uWumOlK2x1hnI7Q= 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__