From patchwork Wed Jul 20 13:37:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Szabolcs Nagy X-Patchwork-Id: 650675 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 3rvdJH0fLdz9ryQ for ; Wed, 20 Jul 2016 23:37:34 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=hI5mD4hn; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:content-type; q=dns; s=default; b=KN7/FWsK3GLG7vDxtOeDvKc6sv46la+bd0vvr9ODQMz CamtYJJUKNfxfUpnFF6Oj776J/xzVjPJBu5BALxvAbKhim2DDWS73vHcAyVXJ6cD J8zI4nsfLILvzW4S4gX5qv9RMofDtWkyaVIRaKlK7pHas38gkjzXeHuIqBheWAmQ = 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 :message-id:date:from:mime-version:to:cc:subject:content-type; s=default; bh=/nK9w+P9VEZkcOmY4q6JYZSphMU=; b=hI5mD4hnveVys65rJ jy7p3sS/eXYzLz3wjYdrzcmtRc4W+X/u85wyiBkav1y+GLriETWwrm1WC1QySyck JBU78d43mctVjOMB3PWV+JeOdcCULvhJMDkTpBcZy33Fg+Ka6qkWlokeZTM+FX0n Cz0WbB0BANDzf0ZdPhKKL67W88= Received: (qmail 85017 invoked by alias); 20 Jul 2016 13:37:28 -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 85004 invoked by uid 89); 20 Jul 2016 13:37:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL, BAYES_00, SPF_PASS autolearn=ham version=3.3.2 spammy=UD:gcc X-HELO: eu-smtp-delivery-143.mimecast.com Received: from eu-smtp-delivery-143.mimecast.com (HELO eu-smtp-delivery-143.mimecast.com) (207.82.80.143) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 20 Jul 2016 13:37:15 +0000 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01lp0211.outbound.protection.outlook.com [213.199.154.211]) (Using TLS) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-60-nbmDVUrGN7i6RUAGd4n3Bg-1; Wed, 20 Jul 2016 14:37:09 +0100 Received: from [10.2.206.73] (217.140.96.140) by HE1PR08MB1099.eurprd08.prod.outlook.com (10.166.87.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.544.10; Wed, 20 Jul 2016 13:37:06 +0000 Message-ID: <578F7E80.6010704@arm.com> Date: Wed, 20 Jul 2016 14:37:04 +0100 From: Szabolcs Nagy User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" CC: , Rich Felker Subject: [PATCH] disable ifunc on *-musl by default X-ClientProxiedBy: DB5PR01CA0056.eurprd01.prod.exchangelabs.com (10.163.24.24) To HE1PR08MB1099.eurprd08.prod.outlook.com (10.166.87.145) X-MS-Office365-Filtering-Correlation-Id: 42b49051-197c-4c1c-da6a-08d3b0a2f115 X-Microsoft-Exchange-Diagnostics: 1; HE1PR08MB1099; 2:At8Ey26Q8VzVh0c2do532h1Gao6QizeQso4aa0d3pesGhEET93im16bw6DuniOwhNLvgqZHsLD3EyJxIox6esXdvsnn0goyBk+qzOMXTZoI7gEazAQxrvPwPRNITgvd9ZCeJbdYxcyFp6B5uwVzYpjOWhgGZB1viBEbu44undoFreg0JmkIfRH4AZR9Ot0lB; 3:O13x8v/itEV8fHahNOfV5xaogabA5z5dbWFyGXvEoKGEq/RqElMIjpPrB17OtInOz5C8AE0eDwpQvOMiVy1qCEytiWjv+ccXBAvONqz0rS5Nn1XiTokk6pg9HN0niWEi; 25:RkCAQODjkPehpiH+ccGMhI3y3dU7cZfRcakbT9ER7nnHBzaHxPlHFFkz/lD1FLtQSWq+aIT6NEC6UGZzFIKFDVECjGaJxd2BlA5e97zB2Xg+rN16ilMz8XBISqvHLJx7+mTb8r4+L3gsgGHCBQu8slaxzUOUy82bCBEfivXXTUvKoqud55OSEWD2szAcOkId3bhrYrcehbVHo5gtd6wSxNtOktPkxVB/t8rMgQgPU+KZqkknbdXQ58ByrNbptfB7pTXuGOlj2MMA1u85GVnNJ6pM5LJjcaOS6/O5ksHS4/k+me2Typ7+JiFNxklTomToLevUplkFWI+iqlNM19HSeYPCLE68UwDPb63XxNafiOwYzdssuFJXxm5kuBorGeYPf+ZqFd9panoA3z+TtO1wI9I1PbnF/2Lj2W0NuE8vWK2vxYigrAHM4pDYrZ8xuWDLAZF1p6eLv1AxsK9bVGZywGVV7xZp7WHe1Lyjg5HzkKo3Gi24eOp8xMZKW06n/fU+ X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:HE1PR08MB1099; X-Microsoft-Exchange-Diagnostics: 1; HE1PR08MB1099; 31:qBxqeYlewL2k2PK+gaZPOm0rmmjghwihcf17E6gNNpn/2aCnka+LXMCtggK5iuh3RwQLlqdTls/uOqK3PcBXS0+wS0Wz0P1OX3/qbdcTdwbz+R1KHmxbs8Arb4f2l5qpmlukwSPRj29OMMHKEfoV4wXQfxImTOpFucVhwigjwNp5z8f3jzWRMCg3AHRBZADO1YripGcJ17QoxUBCSJQ1Iw==; 20:TcXvFGrogQPnEtSGofLH1Lbu0INpY+EYXGpcfEdZMu5ucSJjQfMjgsQb+kFkATlLAbXwUaGuNC3qsnFxfCfGfDTXWJP0g8vW3p2NmDDr1ldXfTOkLmk6b+5jY6NSVa5OzO59N3eZ8ZUcllWxOL3h9Z+MK32uN68xrPic9a+Or7o=; 4:ypuqTK64PWS34yWK/PYE8W/iMoVxLzTsAYI11Faw40SfI+XNMaVQ2Hbt9Mi9Cyc00WKARIklwOrx0P4MzGUjHXVRBj4XpqMTXfBOPuo56huoMaPtT/wVq8UxwlNewotV0J2HlXRgBMK5sf9T1zs2y0wWqEkKFDwYbb/b+9tmuKfPvhlG6fTAxnzWQvFUAzt7oJHSy/Ugc+bOr8AQz7wz1TyevviX8LqYat1VTC4qK7akR9TeflroTfqt0kdVTeJC3CxovJxSCE9m+u2G1Bke2qvkrBvGIxCmTwnNH57QicaQlKEc6JBa4j4lDz0i2Y8NlzlaeDbo6vURgOxd/Ew0lkEDLeQkxS9dls8zO2RBfJxybAy/XOknNPlq50GVYIiuk/u+OFh8oBd7PGu33+nIKqZ24U1RD2EZXfCUEeRB7O52dnnnK2PTCJv9fQ+7DjPOnCPlJ9e6Ujv50whw5tcwHg== NoDisclaimer: True X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(102415321)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026); SRVR:HE1PR08MB1099; BCL:0; PCL:0; RULEID:; SRVR:HE1PR08MB1099; X-Forefront-PRVS: 000947967F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6049001)(7916002)(189002)(199003)(377424004)(4001350100001)(512874002)(80316001)(19580405001)(19580395003)(97736004)(7846002)(7736002)(65806001)(110136002)(8676002)(105586002)(64126003)(4326007)(189998001)(2501003)(3846002)(586003)(36756003)(54356999)(65816999)(305945005)(87266999)(6116002)(83506001)(84326002)(101416001)(77096005)(86362001)(68736007)(50986999)(2906002)(81156014)(81166006)(5890100001)(229853001)(2351001)(42186005)(65956001)(564344004)(21490400002)(270700001)(568964002)(5000100001)(59896002)(92566002)(106356001)(2476003)(66066001)(4610100001)(33656002); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR08MB1099; H:[10.2.206.73]; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR08MB1099; 23:KD2+XmXD93d71n25fZKWA8iOyuJ5AhbAZ0YVSipF7?= =?us-ascii?Q?Of8Ys1bgi7PAl0IQeCnvVPkGOV/hgflMKOSyNhQyoWdd0HdmSOIbeoDYz9BL?= =?us-ascii?Q?4QY5/DhEVkL+78ROwx1nF6Q913DD2Ph9u3u17+OQ6NXT8GvNOWfEjMElisow?= =?us-ascii?Q?oJFisTO3xO0eyGCNarhsbGRyJDboOMMVT+hO3rFpaRi2iKuGV+a/UwYHsbF1?= =?us-ascii?Q?/JWFFvkjrIySqZ098Hll0OtHEj5w2GS5cVEg1NTDYglG7Kt6iXozz2GdkCtQ?= =?us-ascii?Q?1MhzdMJbJbiMP4TAvCtFN6JdywwuD6cGXQEGuSlDdMtzFSB5gsDOamhCcDqj?= =?us-ascii?Q?q6oEfZzBHWQESCSM3kCgZiY+K117eO4ypRDXFXGvOpl9RcHNaaaP4GSH2yZH?= =?us-ascii?Q?fd+bZBmy8Qh1xtv3Nk1ew+60flpJSX3Jbo8cB0OBnhZ8osKDOqeElKUIoBjZ?= =?us-ascii?Q?4DrLgSW9ZxEvSfPg76DDJxZkW7EShLpHlyy8i/GsQHp1z026iyCgzwG1VAeY?= =?us-ascii?Q?LcRw/T94HdrP/tlViAPp6Mxuu3du+fJOJ8kfTsusXhS1w3hOWPiXyShB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= X-Microsoft-Exchange-Diagnostics: 1; HE1PR08MB1099; 6:N4NvFO/eBRnmje36RZc2LO4PSjuz6YjOf7stod/GoywfKOuVxjHk1Cgva6gUJuwll5yqESvb46DQv2YoGusipoHiri8t41kNf33H5Wsb447e9caoga0HOc/fdAi2G6OB305CA05OIIPVXruvPnyVotYlwV8I5nQbwtsTSpmeySHW5ruKK+R85OP9HHN90NdZHHTdTOTQWWl4aw336hE3Rp3QQEdRenrwmElO3W5dpAAKCpTvGejiUGDdxVWd8EP2Vj4lWhVfj4iMZ5vnNw4p0jLHC80vAKFSP+Re8i23avt3JpWcuCHfd80G+oRSeZYht1k1AkGf+4frbRZQAmbZww==; 5:NAIHAgQm175SUHUMgjFv+AEVhaIek3hMJr+RqG7ObiOvajcnvgwTo/rVQN+eVk3OIpb41uwGCr2Bmx0bfCfWM2knYEMLaZaee5AOXvv2ubuy/BzqXg0ji5EhyjtxUTNDzBCP5F4yYTguRpGcNZ7rcQ==; 24:1k9Go8xPPLGRmFsS5X1czRKilDuwLT1LFnqAcmLKYtAECPKb4in/fju5haR+64PCgKCt/81ty68YN1rSDfjcLbVBxbmLuO3tJ0tV3XIlic4=; 7:wRUNfzIQfZEx6D8hmB5lXm9cM4ax7M0GPdJnmBHvNW6Oy9XEPoqti7+94bfe9lIZwo0juDloLPm1SUHiqnA5DDS4CETbr93tcuBOar2WE8eOtqSr/JLhACC0i9aaSmOzbIqHKlSdoU4gmPPJj7IuEe41B6xJL8E6bQ4R2EFXrgn1Q9WVGXGQS4yDvqB4RQwh1CMmvXs00JvP3wsVNbzLiYe29aZSE6vsvlFVxUQbu/OPEG7l8HQU5R+zVJEiiBr/ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR08MB1099; 20:Mzdbk73ud0EHOVslVaHDnyS7BUk2Ucsx+D1PcB7BSiyC1uBUG10HetNL/bPkIwso6QHQby8dexxjQp05jNiqRvP0x3rzE0yUJktuSSGweS3UntHi5FhRyucYgKtFGkM9pDIpMQGlz6EhdlvpWTyOLXNS3SO4RvEvVPJHXmbnf9U= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2016 13:37:06.1770 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR08MB1099 X-MC-Unique: nbmDVUrGN7i6RUAGd4n3Bg-1 X-IsSubscribed: yes Musl libc does not support gnu ifunc, so disable it by default. (not disabled on s390-* since that has no musl support yet.) gcc/ 2016-07-20 Szabolcs Nagy * config.gcc (*-*-*musl*): Disable gnu-indirect-function. diff --git a/gcc/config.gcc b/gcc/config.gcc index 1f75f17..f3f6e14 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1465,7 +1465,7 @@ i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-gnu* | i[34567]8 extra_options="${extra_options} linux-android.opt" # Assume modern glibc if not targeting Android nor uclibc. case ${target} in - *-*-*android*|*-*-*uclibc*) + *-*-*android*|*-*-*uclibc*|*-*-*musl*) ;; *) default_gnu_indirect_function=yes @@ -1531,7 +1531,7 @@ x86_64-*-linux* | x86_64-*-kfreebsd*-gnu) extra_options="${extra_options} linux-android.opt" # Assume modern glibc if not targeting Android nor uclibc. case ${target} in - *-*-*android*|*-*-*uclibc*) + *-*-*android*|*-*-*uclibc*|*-*-*musl*) ;; *) default_gnu_indirect_function=yes