From patchwork Fri Nov 15 09:55:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Szabolcs Nagy X-Patchwork-Id: 1195507 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-513552-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="Cm7GuGqb"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.b="bHXQwB7R"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.b="bHXQwB7R"; dkim-atps=neutral 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 47Dtys0ZP3z9sP6 for ; Fri, 15 Nov 2019 20:56:02 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:content-type:mime-version; q=dns; s=default; b=Y5mSDZO5kJ5XQiHPKUVeRW2PFhR6NH+vN7jR8ya+bD6b7Ma01+ bcfm2TWFKzTBkHTRo+PoddiUKMue2tygO+K7nIvdmSbrmEW75n9SUGW81OLLAc2T +MND1BU9UwAZXtGKGi0vGYCteZOQwwGc8msVOYSBKN47HbAfeQhiPpi9A= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:content-type:mime-version; s= default; bh=tWQpyZgSFcTwRQIewprcNg+3l8g=; b=Cm7GuGqbBRhm1Akk3b6o eG1U601uszvTCSgfVZ4ajNDBLpaYAf0laUBfthuw1cPg20J3fq1dnUX4CbROZri/ uSJmxYnozJHjEKAyKrvZirD8y22USdUaQTSbXMbW333JMI/TQaE+JIyrVVQBjpUR HtzGGLqM0E4ehmX8/D/dWBg= Received: (qmail 61552 invoked by alias); 15 Nov 2019 09:55:55 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 61536 invoked by uid 89); 15 Nov 2019 09:55:55 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-17.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: EUR04-DB3-obe.outbound.protection.outlook.com Received: from mail-eopbgr60070.outbound.protection.outlook.com (HELO EUR04-DB3-obe.outbound.protection.outlook.com) (40.107.6.70) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 15 Nov 2019 09:55:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Fw9jcFZ+1EPNEMhVtc1d1dxiDUa8ezAYXm2VpFuK+6c=; b=bHXQwB7Rdred3EGMcYIMBx/Gxn+NqMVomuXmUZN8Eb4WvvVpgHZt2KpP86CTSv2X7B1Ny/QLAHlMTE6n0YK+F5dygLUgnDjzt4szJc5NJA1Q9nhyz+JgYVZvmGU6hhytvNr8aExWIM7K93XVrNRaR8X/zjzcF8PoqHz15ywhFZc= Received: from DB6PR0801CA0065.eurprd08.prod.outlook.com (2603:10a6:4:2b::33) by AM6PR08MB3176.eurprd08.prod.outlook.com (2603:10a6:209:46::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2451.23; Fri, 15 Nov 2019 09:55:49 +0000 Received: from VE1EUR03FT008.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e09::208) by DB6PR0801CA0065.outlook.office365.com (2603:10a6:4:2b::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2451.22 via Frontend Transport; Fri, 15 Nov 2019 09:55:49 +0000 Authentication-Results: spf=fail (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; gcc.gnu.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; gcc.gnu.org; dmarc=none action=none header.from=arm.com; Received-SPF: Fail (protection.outlook.com: domain of arm.com does not designate 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT008.mail.protection.outlook.com (10.152.18.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2451.23 via Frontend Transport; Fri, 15 Nov 2019 09:55:49 +0000 Received: ("Tessian outbound 0cf06bf5c60e:v33"); Fri, 15 Nov 2019 09:55:47 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 4abc83ec36d21e8e X-CR-MTA-TID: 64aa7808 Received: from 88719c28739f.1 (cr-mta-lb-1.cr-mta-net [104.47.8.50]) by 64aa7808-outbound-1.mta.getcheckrecipient.com id 60ED2850-4403-478E-98AB-6C2AAE7FE9D3.1; Fri, 15 Nov 2019 09:55:42 +0000 Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-am5eur03lp2050.outbound.protection.outlook.com [104.47.8.50]) by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 88719c28739f.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 15 Nov 2019 09:55:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S//1fmswoN9btkcN+aDpbggB4raifXmes/SzNoeCJCNfsSu8ygq76LndZJCoaaR177YdiHp4L+KMw50ifz0s0qhNFBVxr4zTUJbfhoL6DQmGuW/fC9bfFshe9+Fj480BouBKwDemqd21hAo05MUGWlD/0U+jvQUG1IrEza5anO58zdttwiX5BMW0V2cbMiyt59spK3bUvhEj1KDTBqgldVRQsMcpys2TWgxSQFxtlxXw/ujPXGubEd90gIEX83f76QGbu3ION8Rf42qhX4mR1olic0axBbdVRWdDB+NIJeYWLgLTGpWKZwK8GDGyEVhbBsKs0dsSd7TW2l6k4ejcGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Fw9jcFZ+1EPNEMhVtc1d1dxiDUa8ezAYXm2VpFuK+6c=; b=QNrfeSF57268zmJr3fW2VoVIve8LN63S+BSfceBtZq9yoT+Tn6BoJ57p9DA5LUXkFRt8DgdLUKqGDmfi1fTPmLB4AD17JJQ2oCdt0kTugZ4U0iXmCLzJ08fpHr5CReQY9X9hzjPOSYnkEZ5aB3kjHJsGd5+hwZQpXWdr++z8OxAoZcfmmaKPKJhf7ULAMrSdQioss8P8YKBId6O+REFKTNaA+Ni5aoyfxn1m5w68vDRrSy3tMaHmymC/gP1ygA7I0zCZntDI+3GZaJ9ZH87rcxbYroLatDAvaBpSAS4pZ2Tnvk/T0+VM790zuMIW1XIW3q9Pflk+44ceu5+dWxrxDQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Fw9jcFZ+1EPNEMhVtc1d1dxiDUa8ezAYXm2VpFuK+6c=; b=bHXQwB7Rdred3EGMcYIMBx/Gxn+NqMVomuXmUZN8Eb4WvvVpgHZt2KpP86CTSv2X7B1Ny/QLAHlMTE6n0YK+F5dygLUgnDjzt4szJc5NJA1Q9nhyz+JgYVZvmGU6hhytvNr8aExWIM7K93XVrNRaR8X/zjzcF8PoqHz15ywhFZc= Received: from DB7PR08MB3292.eurprd08.prod.outlook.com (52.134.111.30) by DB7PR08MB3674.eurprd08.prod.outlook.com (20.177.120.156) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2430.23; Fri, 15 Nov 2019 09:55:38 +0000 Received: from DB7PR08MB3292.eurprd08.prod.outlook.com ([fe80::21ec:f698:b78e:d4b8]) by DB7PR08MB3292.eurprd08.prod.outlook.com ([fe80::21ec:f698:b78e:d4b8%7]) with mapi id 15.20.2451.029; Fri, 15 Nov 2019 09:55:38 +0000 From: Szabolcs Nagy To: GCC Patches , Jakub Jelinek , Torvald Riegel , Rich Felker CC: nd Subject: [PATCH] musl: Fix invalid tls model in libgomp and libitm PR91938 Date: Fri, 15 Nov 2019 09:55:37 +0000 Message-ID: user-agent: Mozilla/5.0 (X11; Linux aarch64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=Szabolcs.Nagy@arm.com; x-checkrecipientrouted: true x-ms-oob-tlc-oobclassifiers: OLM:6790;OLM:6790; X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4636009)(366004)(376002)(346002)(136003)(39860400002)(396003)(54534003)(189003)(199004)(66616009)(558084003)(6116002)(2906002)(8936002)(6512007)(66946007)(26005)(305945005)(44832011)(86362001)(71200400001)(81166006)(81156014)(8676002)(71190400001)(386003)(6506007)(64756008)(66446008)(66476007)(6486002)(4326008)(186003)(5660300002)(256004)(3846002)(486006)(316002)(58126008)(6436002)(66556008)(102836004)(14454004)(65806001)(65956001)(99286004)(66066001)(31686004)(478600001)(25786009)(110136005)(36756003)(2616005)(4001150100001)(52116002)(476003)(31696002)(7736002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR08MB3674; H:DB7PR08MB3292.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: 9KAWdbDOqPcwk4hlWgR5aWwMFzMg5P8cGbWaL82NDk55oRseFgNoLilHw76VdBzbLoWO/HHd/sSi8FmpoxBzM6Ge0lvhESpOCcZy5dIzxSQIpcPsrooX3/Q6xWO6X427+m8khuVR0TbV4gFmxGPCiL17WrZFb8JHBi7D/yaPC3skA+VaO6XnnnWznZ9IY3bPiu+8isDIPOpaXI86hRBSHlpySUFNyfbUghlHq9AlbUSs+/5zJdzaLus3vc9HaaTmuhF4SOo5fOzYDhQbiVglg3blx5db2YSoIuJ/8RGSIA4+pAuoRI0XP/+TBB9ey5kzmnp0eHZxrEt73D5QeG3Gq+LBbGHy8HuJ1d0PeqP/GbHawkbUHXhh4X2hwoOEfICTuc/GX417TY8UDgRcBvJd3Tj2uxosf1r4G5VxbHMI7xnqC7rtJ5Au6dKT+GLfdidp x-ms-exchange-transport-forked: True MIME-Version: 1.0 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Szabolcs.Nagy@arm.com; X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT008.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 11aedc94-c396-40a0-3fe0-08d769b1f75d X-IsSubscribed: yes Musl does not support initial-exec tls in dynamically loaded shared libraries. libgomp/ChangeLog: 2019-11-15 Szabolcs Nagy * configure.tgt: Avoid IE tls on *-*-musl*. libitm/ChangeLog: 2019-11-15 Szabolcs Nagy * configure.tgt: Avoid IE tls on *-*-musl*. diff --git a/libgomp/configure.tgt b/libgomp/configure.tgt index b88bf72fe3d..747d0485bf8 100644 --- a/libgomp/configure.tgt +++ b/libgomp/configure.tgt @@ -17,6 +17,9 @@ if test $gcc_cv_have_tls = yes ; then *-*-k*bsd*-gnu*) ;; + *-*-musl*) + ;; + *-*-linux* | *-*-gnu*) XCFLAGS="${XCFLAGS} -ftls-model=initial-exec -DUSING_INITIAL_EXEC_TLS" ;; diff --git a/libitm/configure.tgt b/libitm/configure.tgt index eea865d6aa3..0bdca1123cc 100644 --- a/libitm/configure.tgt +++ b/libitm/configure.tgt @@ -31,6 +31,9 @@ if test "$gcc_cv_have_tls" = yes ; then case "${target}" in + *-*-musl*) + ;; + # For x86, we use slots in the TCB head for most of our TLS. # The setup of those slots in beginTransaction can afford to # use the global-dynamic model.