From patchwork Fri Nov 15 17:23:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Szabolcs Nagy X-Patchwork-Id: 1195770 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-513646-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="SiiQY76u"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.b="Fy2cvVKd"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.b="Fy2cvVKd"; 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 47F4vP30Jyz9sP3 for ; Sat, 16 Nov 2019 04:23:45 +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=D0NvMsqwJPA6kOq2i28EYdrq1p0ymMWZ4Cl6ZvRgF4+9qdjLPR 2u1j92WoxHlFBQMruXBbridhnRK+XDS3ELBDugf5m3EKkcer2WuCIrhNNLB+UgVx +fD2JzBouiFFR/hL9mqIdlUFYPfbYLgc1hAMm4oJiXzeIay5nTWDQ5c4s= 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=+Fjb9WwzVvIKr8bPT3oaRyNJWto=; b=SiiQY76uO8WLNy9SMNme flVtPYDkRLEGQmSJRFDK4DZ9NQZtrE19fbKrY75mVaCRWthhCa8Zs3EQARvXENoG MM+NaK27uT9KUBo07Kt34zpuvpX6lOAuO/btpPdrMUFhpFDxINivf4nMbDNDZWWw xF7LoefkkE/SBQBq084H+hw= Received: (qmail 96331 invoked by alias); 15 Nov 2019 17:23:38 -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 96320 invoked by uid 89); 15 Nov 2019 17:23:38 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.1 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: EUR02-AM5-obe.outbound.protection.outlook.com Received: from mail-eopbgr00054.outbound.protection.outlook.com (HELO EUR02-AM5-obe.outbound.protection.outlook.com) (40.107.0.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 15 Nov 2019 17:23:36 +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=4l7/k+D0bhu3oD1V+CFkK/dDLL1JVoIePKENfs0a8Bc=; b=Fy2cvVKdwe0uIiISgKdFhtP1D5kjp+1BNY2NEb7nSjDOAUVCG34Gj7kLCz/QBFZ+R0QnpDQfHyaBGueahUC6o9EOhKueyhP3qwrZQHRR2NyZM1Vi6L3qt/4l6j0ZS3diO5YPA0O1wE+QIANP6v7+s0FrDeckqzs8qfwu+JxuR3c= Received: from VI1PR08CA0123.eurprd08.prod.outlook.com (2603:10a6:800:d4::25) by AM5PR0801MB1825.eurprd08.prod.outlook.com (2603:10a6:203:3a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2451.27; Fri, 15 Nov 2019 17:23:33 +0000 Received: from DB5EUR03FT050.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e0a::204) by VI1PR08CA0123.outlook.office365.com (2603:10a6:800:d4::25) 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 17:23:33 +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 DB5EUR03FT050.mail.protection.outlook.com (10.152.21.128) 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 17:23:33 +0000 Received: ("Tessian outbound 3fba803f6da3:v33"); Fri, 15 Nov 2019 17:23:32 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: d349d6ab94d6641a X-CR-MTA-TID: 64aa7808 Received: from e26d3e921488.1 (cr-mta-lb-1.cr-mta-net [104.47.13.56]) by 64aa7808-outbound-1.mta.getcheckrecipient.com id DE6F5D37-45BC-4AE9-9B78-4B4335F0EC15.1; Fri, 15 Nov 2019 17:23:27 +0000 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04lp2056.outbound.protection.outlook.com [104.47.13.56]) by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id e26d3e921488.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 15 Nov 2019 17:23:27 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gBB1jRXrQQO0DB4L99B9mbmRfnCijcZAxx/03i7DCF1EpOR3HFt0okio0theFAggtxvr0LquaTRPhh1aHKW8xgQTQrh6ImywrPJyCFhB+I4GG0ZJkEm3QmrtBC9ZYXMWVWCHxGJ5EC5JRI4BPZxr/ZJaDYGyydnk6A2gbIVyA0fccabZ2ua3klLjfCLon0P9D6fIxcvSer7M9QDubmAEnt1WEXHLMARZ8aPbC3rWO3Vi/bPa4ZJUYposxQGIskUFBuu/HOZtj2SHKzqZuRs9C2dkOESUfB+UXN0cIrpVU3dKQFVJ0eKpK/OgsfzE/j4diqDKLg3Z7e8eJwFZ8/OIlg== 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=4l7/k+D0bhu3oD1V+CFkK/dDLL1JVoIePKENfs0a8Bc=; b=IsZsYjtpGcH/SqRIcE2wKFmYanpXoVDQTHitxxUjjC0i4i/Bds0e0x7TfXYtm2JuPvX48xYboxch5EatagnGTYAxy1pkmvEr13ovaf8X9rGg92T3ugvxrgDv81k3jA+77YLwRvHH74ZzmYwNb4eMp/Yl3RGyqSCXtpZT0xndYFiwBsozRBsuRRT0awJE8YsNfCDU7b4nF+4PtI+Asfz4CvKfLBBiI/P6y2R5LucJtKJIEIrqZYuiFM5Tu4KDKUOcOkTua+gPASbmqI/B/syMwLMMvMcWhCLXwM8knNdAA8dgGRSB2EXQPIfg0dYbQ7W7lPUEUQ+bUrN1I4MCTtQWOQ== 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=4l7/k+D0bhu3oD1V+CFkK/dDLL1JVoIePKENfs0a8Bc=; b=Fy2cvVKdwe0uIiISgKdFhtP1D5kjp+1BNY2NEb7nSjDOAUVCG34Gj7kLCz/QBFZ+R0QnpDQfHyaBGueahUC6o9EOhKueyhP3qwrZQHRR2NyZM1Vi6L3qt/4l6j0ZS3diO5YPA0O1wE+QIANP6v7+s0FrDeckqzs8qfwu+JxuR3c= Received: from DB7PR08MB3292.eurprd08.prod.outlook.com (52.134.111.30) by DB7PR08MB2955.eurprd08.prod.outlook.com (52.134.107.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2430.25; Fri, 15 Nov 2019 17:23:25 +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 17:23:25 +0000 From: Szabolcs Nagy To: GCC Patches , Rich Felker , Andreas Krebbel , Ulrich Weigand CC: nd Subject: [PATCH] s390: add musl support Date: Fri, 15 Nov 2019 17:23:25 +0000 Message-ID: <57d0a100-da67-742b-8f71-ffe010b7eaf9@arm.com> 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:4502;OLM:4502; X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4636009)(376002)(39860400002)(366004)(346002)(396003)(136003)(189003)(199004)(54534003)(8936002)(102836004)(71200400001)(66946007)(31696002)(66616009)(71190400001)(6506007)(99286004)(65956001)(66066001)(52116002)(31686004)(66476007)(66556008)(64756008)(386003)(5660300002)(4001150100001)(6486002)(36756003)(4326008)(6436002)(66446008)(6512007)(7736002)(305945005)(8676002)(6116002)(65806001)(81156014)(316002)(81166006)(478600001)(3846002)(476003)(486006)(2616005)(558084003)(14454004)(2906002)(25786009)(44832011)(256004)(186003)(58126008)(110136005)(86362001)(26005); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR08MB2955; 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: BtWg18RpnnPnNp7ieUnr6mOGiFWy6WF/ZEkuZfkYG/w7zK5hmK2JzkYlkXnKyxjZsWDEyapUpSDblEaJSZlPuefKj5iImbivcLvl9Uc4WleyzEP0odduIwaJ1RLlQGdCw7yQrQwDNDaY5QtK4zdZsYpsi1DuZ3h5HG8dcNtxLYszT22R0p2RvvLERMQgOYnHfzP2SeNfdnn/cblNctUn5sV8NZYCYqlZfa6N0yVSvTQpHwPHvx1oDsWFpOz3dGQhOLV4rqIrYC4JxRYvv4YRZFHa1gsR47y88s5aovCsUdjcpSpX78b25PDAMY0qiM0Xo9dlXWyBfMcWRyTn2wd9efH/QEybDe8nNRK3049Kxa19qc561HmzLzGgCFOWaYtYW97I59GLNrdmfH5rjGO47T4HX02S7mgkPGxihQ062EPeZ0WfulvcBL9YSNgsPiJZ 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: DB5EUR03FT050.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 46f6730a-4a6c-4740-3001-08d769f085ab X-IsSubscribed: yes Add the musl dynamic linker names. Build tested on s390x-linux-musl and s390x-linux-gnu. gcc/ChangeLog: 2019-11-15 Szabolcs Nagy * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define. (MUSL_DYNAMIC_LINKER64): Define. diff --git a/gcc/config/s390/linux.h b/gcc/config/s390/linux.h index f76986acdab..5f6b7041f0f 100644 --- a/gcc/config/s390/linux.h +++ b/gcc/config/s390/linux.h @@ -75,6 +75,9 @@ along with GCC; see the file COPYING3. If not see #define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1" #define GLIBC_DYNAMIC_LINKER64 "/lib/ld64.so.1" +#define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-s390.so.1" +#define MUSL_DYNAMIC_LINKER64 "/lib/ld-musl-s390x.so.1" + #undef LINK_SPEC #define LINK_SPEC \ "%{m31:-m elf_s390}%{m64:-m elf64_s390} \