From patchwork Sun Aug 20 17:14:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: YunQiang Su X-Patchwork-Id: 136284 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b82d:0:b0:3f2:4152:657d with SMTP id z13csp2573005vqi; Sun, 20 Aug 2023 10:15:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHFZcEB8rgqV7QiNfOfjM4zG8Nu1e+HWClsasP7hkMYr6awauMQj3lcn3Cl6amR7BLbcXEF X-Received: by 2002:a17:906:209d:b0:99e:f3:67ae with SMTP id 29-20020a170906209d00b0099e00f367aemr5167736ejq.31.1692551730952; Sun, 20 Aug 2023 10:15:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1692551730; cv=pass; d=google.com; s=arc-20160816; b=NDDXA8zHxbDaaB6VF659hcI+i6vFZp8NVuwkyYWosNCPUuMHfNh5X/3XSYQzD/oLCg GZl6yIjX/KLnj1m+B1j56tsk2HEZV0+jsqvR7h1nOgvw6uYqWNiqwFDtJZU5Cx6QhDHv abwmNt9LnEnA6aivZgQiMVHdVaPvklGCnrxa8fwso1lTwgXVFXeZKqPNLHxgHE5MnwY7 jrhJPvWz7yTs61hmWEtk40gdmyAJTdeMXOcz+1Btmmrfuab2hlkWgwiaytUQP6AEbMW/ J3NUK0RUja/S5IITWIO7gDnOEXuiFna3M47RBGZyY4F2fuGs5ZnUgMfBctEpXTKyN2R/ avSw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:message-id:date:subject:cc:to:from :dkim-signature:dmarc-filter:delivered-to; bh=v5n28VGgwLanyC/mNF/Dez87kRdI1m0zppNoYR0EXrU=; fh=u04MZwxtCeDM//h4ecoAPfVUFamrfQCRZXnCusDEtwc=; b=LCBAWhYiyrUFibbrFq/KA1RXff52E5f6i0F4wGhV+Vqw3J5iULMVaD4IrnInumVG9B WWHpGnC5gowtsjbL+cjBv9dmTOxrx373jRzVdaIUY9AGwgv5Cq738Z7NUxnmODh0s2TB +hLyCLnlCgX1Z2VI6TXANKG3EFiWDBn4C9cp2ezseQcys0iD/pFJQTQdsuQ4MZOrcepd uWVhD21uxzxF3TNlaj/+uWIPyk5GtR5uM2GyMR0vu5BzbqaEqTbaFAg3VdMd6hrJe7zN qpDzoZrYWq4eYRV3Fgb5N+JBRi9Z5UKPQ4kqqmn9NS5FXKEvHdntJIz/02BaeEVUwLbL fdZg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cipunited.onmicrosoft.com header.s=selector1-cipunited-onmicrosoft-com header.b=G5coQTB5; arc=pass (i=1 spf=pass spfdomain=cipunited.com dkim=pass dkdomain=cipunited.com dmarc=pass fromdomain=cipunited.com); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id r16-20020a1709062cd000b0098283e90548si4298697ejr.570.2023.08.20.10.15.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Aug 2023 10:15:30 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@cipunited.onmicrosoft.com header.s=selector1-cipunited-onmicrosoft-com header.b=G5coQTB5; arc=pass (i=1 spf=pass spfdomain=cipunited.com dkim=pass dkdomain=cipunited.com dmarc=pass fromdomain=cipunited.com); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9260B385772B for ; Sun, 20 Aug 2023 17:15:28 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2102.outbound.protection.outlook.com [40.107.255.102]) by sourceware.org (Postfix) with ESMTPS id DDE333858D32 for ; Sun, 20 Aug 2023 17:15:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DDE333858D32 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cipunited.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cipunited.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SV8dEM6kb89TQ2sbU5yNXqTeYS11T/f2U/jTIrbPDqJ5Zvu6ETZUkJQh3PJvu/U4daIKAttoG0X1cCbWhti9/5LEI1IioeJcn4j2uhhBpvb4YZ1ctKuzrkq7gFS1lJJaTf0AzzqiKWqOoG/1r+cHamCyPImVkp9kxDf3AG5MLSWHMN+msH8u77bxgasVmmRN7CEZDEs8G5j1GPiiwnlKhIeYQrQx+xeZutmOkQsl0a1AaGaFhk7znF5yDVouvasmOx+4CUsqvGpQjyuxUD/i+jtDZuyqJQV1qVZegaNTnyTtgk9MupmjX6LVzwFyBwgr0tVRcL4PtvUkDKW236ytHg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=v5n28VGgwLanyC/mNF/Dez87kRdI1m0zppNoYR0EXrU=; b=D/6XeaMvD+onNf9LrGVfnsuxtgxvpNaV/a1xrbL48cnvW7DivWQUCk3L9LoQugRdrMi4PliifcK7euL99zNkN1tDVJ4HbZI/s1OLQV+xfRnuuTxvHM7LIEfAnsw62ko5B+4MrwfqHVESVx22i5mWLq0ZlXG65jAzwh5oQBOpzNNueQB0TPhJz4ySaP2XwzYj3YWaPwyYANvogCI4DxngqFsopwL8sOWlDDa/HkLuzVCUwdBA6CcK5M59Os3Klf1VZZWLF/s3+EofHCs3EDiAKPr18+D9qS6j0tT23/jKyx/mt9MfHuwaocKiOOE6PG4bv0XavfhVww7fpqdoLzPWLA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cipunited.com; dmarc=pass action=none header.from=cipunited.com; dkim=pass header.d=cipunited.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cipunited.onmicrosoft.com; s=selector1-cipunited-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=v5n28VGgwLanyC/mNF/Dez87kRdI1m0zppNoYR0EXrU=; b=G5coQTB51nM+llIsHXPmmP1n/QiHZpeJqwQckRXVV5Evd5B5m7o/UUQdPL3qvD/MpxHuGzDFwNro0xBbqNQZx7gFslBLyTDBWkJaPyeSfQAM8wl9O0tHvuPLub7dtlmvLtd6aCAoieRZqhLJwcML+Q69kllrIDfswWxFln6fTrE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cipunited.com; Received: from TYZPR04MB6117.apcprd04.prod.outlook.com (2603:1096:400:25a::9) by TYSPR04MB7284.apcprd04.prod.outlook.com (2603:1096:400:475::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.20; Sun, 20 Aug 2023 17:15:14 +0000 Received: from TYZPR04MB6117.apcprd04.prod.outlook.com ([fe80::b15:a53e:604e:a735]) by TYZPR04MB6117.apcprd04.prod.outlook.com ([fe80::b15:a53e:604e:a735%3]) with mapi id 15.20.6699.020; Sun, 20 Aug 2023 17:15:14 +0000 From: YunQiang Su To: macro@orcam.me.uk Cc: binutils@sourceware.org, iant@google.com, ccoutant@gmail.com, YunQiang Su Subject: [PATCH v3 1/2] Gold/MIPS: Improve MIPS support in configure.tgt Date: Mon, 21 Aug 2023 01:14:56 +0800 Message-Id: <20230820171457.1377429-1-yunqiang.su@cipunited.com> X-Mailer: git-send-email 2.30.2 X-ClientProxiedBy: SI1PR02CA0003.apcprd02.prod.outlook.com (2603:1096:4:1f7::20) To TYZPR04MB6117.apcprd04.prod.outlook.com (2603:1096:400:25a::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR04MB6117:EE_|TYSPR04MB7284:EE_ X-MS-Office365-Filtering-Correlation-Id: 58b07d83-dcbc-45b6-9e61-08dba1a1046f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ID0rWP+WvsaPs+uGnYG8hsbq1i8cOGnm5T5Hmx0irn6u3P6lvq01d1YPcmgW87+q0ktGhtqC+mFn3+u2PLb5i7/IDlxX+w2vi3jsQEDUs36wAx9U4MRA7i7KlqGQ1n77NCOhtKiI3v5dgXSlCtjGxPJjjr5bmshdQkXceFAlOsq6QNC/OiMpy/err0k4TyVwKylMzhXeOy+mpJJd9Nl2J2EaPkUhW/pHDUzaXTv9WhNEx+RrEWi4Wgud11XT3L96MdqKcnpIUakCdJ5yX/IuJa+hY4bSyVIceGW3CsdAMYxlNuyDcqwNp9Dyz+vT3/toRSHppbBwSd1p/5EI7n7u+135P2ZqGyZpXQLp4v8EIIoJSC9PY2019Tgr4gHfUdx7Ek3F4pIfQJz6jS9ark49HwIDOR+IIVQ0fEUzjmkGOxZKL8xK2AIKg3K5LX9vU332/lYQurVF7XyPFv6+qRuPph62YOEMVYFqpy4XTNHb42RafgdAJsCusI4cI9XGHf0Uh+ooVPOoZTV/ZhqCfnLQScDYHFGF2fydyvv8C2G9p/d5UA8FyldpW5rDK42eiIgboW0x0IUERqe4k233Yh99TXpdGs80p49xK8QxxahgBUk= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TYZPR04MB6117.apcprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366004)(396003)(376002)(39830400003)(136003)(346002)(451199024)(1800799009)(186009)(66556008)(66946007)(66476007)(2906002)(4326008)(8676002)(8936002)(41300700001)(316002)(6916009)(84970400001)(6666004)(6486002)(5660300002)(6506007)(52116002)(478600001)(6512007)(2616005)(1076003)(107886003)(26005)(83380400001)(38100700002)(38350700002)(86362001)(36756003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: E15r3gxQ6TiO7BNY0YemZvRCUVGSBxa0S4SN0BOFddRMSi408H4XNpgb3H0Uu/rRwV3bFZyutEiTvDbQRJY043Nhs3EEA/3o8BDDUlhd/YyWcrgWpJ45ZUmBXqqpm2EmFezn0QzWNA+I4gUMBeRiOYqFe9VvZzocbebSpoh6a/yN7IyWpVaWoIHuRj8FFKfiya+hGMah0KB/1aGBFRo1Hys44hnhy3E58CT38VuMEWcYy48hF3iXR7S1+r5DEURwY6uhVVfvdn3SieL+ObTOdMo/kl03G63IXRUC/JA/Kkf4mnlcfObBhHhjUKusOaEkKNB3zYRVSeLJr0wlOglWFGp8GP6gQNSoe54cqRJk05nN4aAweKQo981vQpnqXz1lxc4+u7IXncBYJRc6OSbH9gwvF45s7A/geg2g/y3B95BGtkQBDbT9MfgncLX5EwSajk35F6ZpxwN9sPfhwDlacbHQDFGEieexSTpu57F2lABIUVMXvMKHBppJoLXTC8+PaOlOVgf8xThibSVZ53dvy8hOUUIwy3rN4z2Zvn29WO7WXVAho+XwWnXvrAbcUfHwAy3yBui/QE10zFROiDfXhjyjL48uWghcUt9/8Nfx6FWONIcCbtij8EuhTjfrJQrHjkwDaFRRgeijx27Og2vtE8EdyiZbjC/OYVAjPSpkGAwdkbla6r/dGVN8jHKxAkwfoc/JyS6ySJ36x6Ggm+EiiJPrO3/6qOrTUFH04Wtcdb/WOca7SD4BWXr2b9KCS4+8Q1eU8brQPobeWGLDYsyFdp5By6dN6hEPsQuBRA7AhGRcH8HAIuXOXY02mhImIwFwogBrfjrbmSo47hqeqGB7Qio/dDEfgW8O2TA08pmOpmd8Fw3gs5Rs371cn5MFNfvDHCWsiZE9wk1lE6I86w6pD+kLZZKqRUxA30d0CajdWhxf22PnHK8ixHPNntvdfCJq+e6jaLQRxG4gN1Touyzjf50E6zQOXvKGJ8zqULKIwgBaqc6jEzAcckF43DvWGBGSNmqw2SrYKOrjd6/TF2uimz+3hXOgdpx9tRRPzEm1VHew5J+/ZziyDk/nYnyWstWgj26MlLtB5wDckIzaYur1eybAKOrHSA/DBM8xsRnZkDEbtxQQeIePU6ZVSJEr4QHLcrIz/yRsbx7MppQwgxr0jEk3jvdlVA4xMP1i5KNxI50aricLXu0M1I7EG+BUFAGA6RHW68El+VNPmLDzzaurTUTayoS7KIY49U+RFwKBDfzpkN/4IQ6ddJeywz0wkKbI+/MgqFV2sWqHflZIY44sS1hz7WJChTeGSd/g4PJkVENPXuSPFapF7Zd7s9p3bu7/6niFxwsR1nADsuZlnr472Y8LYk8g6lx6uJmkz2OGZtsgcXa4ueojHlU3ks/7J5m5J6LN1Z1is/feLZG4bwzfGS7qs2OyrOzN0kbqd4H09nidE/UIDdkUEjQSLpeG7Sf6IcqtU4uJDnah6/1fqQq08OyTZK6JAASJAZDEPse4zcZtxH79Oc1zGgt21lfFMh4ZpXmZNPsxwQao1QUWZDOpy/H1t7Sb71+q5jG2C4RAvJrKRkUEKsTJ35BtoSmJ1IsElLRXVpUrqH7VfMc3Aq7LYw== X-OriginatorOrg: cipunited.com X-MS-Exchange-CrossTenant-Network-Message-Id: 58b07d83-dcbc-45b6-9e61-08dba1a1046f X-MS-Exchange-CrossTenant-AuthSource: TYZPR04MB6117.apcprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Aug 2023 17:15:14.2259 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e31cf5b5-ee69-4d5f-9c69-edeeda2458c0 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: FSs+EDdhtXyEUJd6awZJ6nvf6AQpEYkry3W8DfTpkRnORYczLWJEtoHFApazs4ASvYSdIg3tScmcAEGOzugpntS4ic01n+YkcV0u7zFK48c= X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR04MB7284 X-Spam-Status: No, score=-13.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774769123704392891 X-GMAIL-MSGID: 1774769123704392891 1. Drop mips*le triple pattern, which will consider as big endian by other components of binutils. 2. Use EM_MIPS instead of EM_MIPS_RS3_LE for little endian. EM_MIPS_RS3_LE has been deprecated quite long ago, and in fact most of current LE ELF files are using EM_MIPS. 3. Add targ_extra_size=64 for mips32 triples. 4. Add targ_extra_little_endian=true for big endian triples. 5. Add mips64 triples support, and define targ_extra_little_endian/ targ_extra_big_endian, and targ_extra_size=32. Let's use `targ_extra_little_endian` in configure.ac/configure, so that littlen endian can be enabled if the targets are all big endian. --- gold/configure | 8 ++++++++ gold/configure.ac | 8 ++++++++ gold/configure.tgt | 24 +++++++++++++++++++++--- 3 files changed, 37 insertions(+), 3 deletions(-) diff --git a/gold/configure b/gold/configure index 5c6fe2a5607..ccb1f2269b2 100755 --- a/gold/configure +++ b/gold/configure @@ -5266,6 +5266,10 @@ for targ in $target $canon_targets; do -o "$targ_extra_big_endian" = "true"; then targ_32_big=yes fi + if test "$targ_little_endian" = "true" \ + -o "$targ_extra_little_endian" = "true"; then + targ_32_little=yes + fi if test "$targ_big_endian" = "false" \ -o "$targ_extra_big_endian" = "false"; then targ_32_little=yes @@ -5276,6 +5280,10 @@ for targ in $target $canon_targets; do -o "$targ_extra_big_endian" = "true"; then targ_64_big=yes fi + if test "$targ_little_endian" = "true" \ + -o "$targ_extra_little_endian" = "true"; then + targ_64_little=yes + fi if test "$targ_big_endian" = "false" \ -o "$targ_extra_big_endian" = "false"; then targ_64_little=yes diff --git a/gold/configure.ac b/gold/configure.ac index cafd3503b3b..e04e4086140 100644 --- a/gold/configure.ac +++ b/gold/configure.ac @@ -193,6 +193,10 @@ for targ in $target $canon_targets; do -o "$targ_extra_big_endian" = "true"; then targ_32_big=yes fi + if test "$targ_little_endian" = "true" \ + -o "$targ_extra_little_endian" = "true"; then + targ_32_little=yes + fi if test "$targ_big_endian" = "false" \ -o "$targ_extra_big_endian" = "false"; then targ_32_little=yes @@ -203,6 +207,10 @@ for targ in $target $canon_targets; do -o "$targ_extra_big_endian" = "true"; then targ_64_big=yes fi + if test "$targ_little_endian" = "true" \ + -o "$targ_extra_little_endian" = "true"; then + targ_64_little=yes + fi if test "$targ_big_endian" = "false" \ -o "$targ_extra_big_endian" = "false"; then targ_64_little=yes diff --git a/gold/configure.tgt b/gold/configure.tgt index 4b54e08d27f..e2e131bbd84 100644 --- a/gold/configure.tgt +++ b/gold/configure.tgt @@ -153,19 +153,37 @@ aarch64*-*) targ_big_endian=false targ_extra_big_endian=true ;; -mips*el*-*-*|mips*le*-*-*) +mips64*el-*-*) targ_obj=mips - targ_machine=EM_MIPS_RS3_LE + targ_machine=EM_MIPS + targ_size=64 + targ_extra_size=32 + targ_big_endian=false + targ_extra_big_endian=true + ;; +mips*el-*-*) + targ_obj=mips + targ_machine=EM_MIPS targ_size=32 + targ_extra_size=64 targ_big_endian=false targ_extra_big_endian=true ;; +mips64*-*-*) + targ_obj=mips + targ_machine=EM_MIPS + targ_size=64 + targ_extra_size=32 + targ_big_endian=true + targ_extra_little_endian=true + ;; mips*-*-*) targ_obj=mips targ_machine=EM_MIPS targ_size=32 + targ_extra_size=64 targ_big_endian=true - targ_extra_big_endian=false + targ_extra_little_endian=true ;; s390-*-*) targ_obj=s390 From patchwork Sun Aug 20 17:14:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: YunQiang Su X-Patchwork-Id: 136285 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b82d:0:b0:3f2:4152:657d with SMTP id z13csp2573059vqi; Sun, 20 Aug 2023 10:15:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHTKLnDZmITC4lyZsByCJqhKQ4XgvHbLCzKOcUCa/XJRvWV4FuU6DKieoC9BpfQsCSqN7mx X-Received: by 2002:a2e:80c8:0:b0:2b9:da28:c50b with SMTP id r8-20020a2e80c8000000b002b9da28c50bmr3336220ljg.16.1692551736315; Sun, 20 Aug 2023 10:15:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1692551736; cv=pass; d=google.com; s=arc-20160816; b=X99qNTSBKqQXq7pm950HHAs8U7KNv4Hi7egiba0np0Hrl1HZ2PO/FprN4KB+gG0LN/ 0FZTI2qQh4rIN0v22Og9J+kGVP4x+O/fGioW+3iJvwVGq8R+2vFuxp17XhYmny+pj2NS OLN59ejvVLqsI33TSQQa8f5FzqgoVaH1X+QUIqCtk4btyZW6b/UZNU58KExYKQdRlOq3 t/HJ/yrYEsGY94fxF5NFI0Nq/85UyGDH8LtbhwdTy+QkURJnt6IuJ5zdeCA3KcbRZInA Js8Go/K3MYCkX20cBmDCBop0jU0XVsOsRHsmuaWTJPa68Egwv08OMsc9/0rRzVuCA2dY BR5Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dmarc-filter:delivered-to; bh=cG16KJWYKCcWpAslce6qTxH+CtuTqLSK0PDn9YVHjYo=; fh=u04MZwxtCeDM//h4ecoAPfVUFamrfQCRZXnCusDEtwc=; b=cq+zTY2pfX9Haykw95dtVW2/OBkXS4HLYtaxqYX5SIQ6pISnlY1BIZrCM2gcjyuXjU XdD1wHzFv3h7E7dMlHRbb/l6U2Oj85+jrhCdF2yXJh90OT6lWc04AdAF67k/H1Aokj7e aohONoN4o+NCyuqo/B7YnqONtakgXDKAPfwWezwygU/PFuK0KJUF5xpZ90bs2V1on+9K PfOwwkED8syiNRXDGuRIW9fThIota0lU/I5V+jZNvjEXfsTXv4BbzW1i3HrNgPUFeraT fzYppANpptuOouKgb2K3VUY3Ij+PsMaz7i0t+qOmlCakVEEjICYJphm8Ym72kgqYR8n0 PgCw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cipunited.onmicrosoft.com header.s=selector1-cipunited-onmicrosoft-com header.b=F4y6kTW3; arc=pass (i=1 spf=pass spfdomain=cipunited.com dkim=pass dkdomain=cipunited.com dmarc=pass fromdomain=cipunited.com); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id c10-20020a170906154a00b0098e48ad11e8si4366543ejd.902.2023.08.20.10.15.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Aug 2023 10:15:36 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@cipunited.onmicrosoft.com header.s=selector1-cipunited-onmicrosoft-com header.b=F4y6kTW3; arc=pass (i=1 spf=pass spfdomain=cipunited.com dkim=pass dkdomain=cipunited.com dmarc=pass fromdomain=cipunited.com); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1BB5D385B528 for ; Sun, 20 Aug 2023 17:15:31 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2102.outbound.protection.outlook.com [40.107.255.102]) by sourceware.org (Postfix) with ESMTPS id 2C6F1385840E for ; Sun, 20 Aug 2023 17:15:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2C6F1385840E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cipunited.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cipunited.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mMqWNSrihVmwp2SkdvOATwIKi1Hb0Zb5VyJoadkk3siGNz+p8ylq0fxYW1Y6kZ30RJ5TD6PwDXY3u2reTbZXOdbJSup2hNWy1sNHsVtfcf8qavZwvfBX3V7h6NZuuHUrG6g7IWC0rtS4gLv3/xgZaC/V8gPSwBgp8wMk6IkSwq4KEHN+IaBmpouoOLQglUpQ1f7kaWjyK/T0LkNppeN4wtxzBKHeFzQr5TqNX0zlhXTfWPh9aFagmT+VmENK7lJ1zum9nyMUyu/IYZ/zyg2UF1QrQMIH+KqthDhOOZ/m3EX4ww7JZ7hTbOzZwcd4gloMGD0JoC5CAIDifK8W1YBCiA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cG16KJWYKCcWpAslce6qTxH+CtuTqLSK0PDn9YVHjYo=; b=Gj7M9vaiXaQPr1sZAN3HRcDeUIFHWjb3uw4Yrs/y0PwmCaL50c6DivjV2kSaJJsNsGIKh05jSVpDVRG757/9Q7WFbGprMxU20RDWNbWZGrjjGKUnYkz8j9R0KCVyy5wnQlnM7aiOCcqQm8WqfhoOnKDbcDcnU4qqvyjsKeL43vs/gV2T8Fd0UhlQZH5RMfFzL/wmStuZUmGVtr3BdW23Bp5VHSgw50q2o2AmKNOspsMA1EWtpO+Svd15fJhDlVreCfCnUCmlF0jvfpb0J2ixQ+ekjcNCd1FoCFmLFwUIPuE+85ck7OFbNG5fawzs3OFUbqoB/6WLDiLhqKhF30UPVg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cipunited.com; dmarc=pass action=none header.from=cipunited.com; dkim=pass header.d=cipunited.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cipunited.onmicrosoft.com; s=selector1-cipunited-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cG16KJWYKCcWpAslce6qTxH+CtuTqLSK0PDn9YVHjYo=; b=F4y6kTW3ms/ac+a0kK5BiBmWlKiWSA1NsSeaW3qs+So4bfTFPVUCEAYSjoLv3jtsWV61Nss2P9Tg+EYGk+7QEZxcXR25GAClarMynmyrffvv0cGESpC6DV+cNQfxI4N5rzWzlbDyY2fefyMezjlyAgzRzZeCwltLwcO+kMRIDLc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cipunited.com; Received: from TYZPR04MB6117.apcprd04.prod.outlook.com (2603:1096:400:25a::9) by TYSPR04MB7284.apcprd04.prod.outlook.com (2603:1096:400:475::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.20; Sun, 20 Aug 2023 17:15:17 +0000 Received: from TYZPR04MB6117.apcprd04.prod.outlook.com ([fe80::b15:a53e:604e:a735]) by TYZPR04MB6117.apcprd04.prod.outlook.com ([fe80::b15:a53e:604e:a735%3]) with mapi id 15.20.6699.020; Sun, 20 Aug 2023 17:15:17 +0000 From: YunQiang Su To: macro@orcam.me.uk Cc: binutils@sourceware.org, iant@google.com, ccoutant@gmail.com, YunQiang Su Subject: [PATCH v3 2/2] MIPS: Use 64-bit a ABI by default for `mipsisa64*-*-linux*' targets Date: Mon, 21 Aug 2023 01:14:57 +0800 Message-Id: <20230820171457.1377429-2-yunqiang.su@cipunited.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230820171457.1377429-1-yunqiang.su@cipunited.com> References: <20230820171457.1377429-1-yunqiang.su@cipunited.com> X-ClientProxiedBy: SI1PR02CA0003.apcprd02.prod.outlook.com (2603:1096:4:1f7::20) To TYZPR04MB6117.apcprd04.prod.outlook.com (2603:1096:400:25a::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR04MB6117:EE_|TYSPR04MB7284:EE_ X-MS-Office365-Filtering-Correlation-Id: d0b919f6-9f31-4311-42dd-08dba1a10696 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UwxNKBU2CSzBBp0dLwdOWH+XLbAGn1YdSRkyhsuwX4ZohBnHVAddps5Regsvm4kDJnQjFEvBPCju2OloDqWl7VjqBS6kyuhOxo2kRZ9FlyFCoo4VF6mClmzXLRykT2ATHzhhwpvfQCNqcmDiqU5X8RpBu4CsN0n3sKZhhBIPgKGtKjTDX4V3X2rCpKFt1X3z1w6UyQu/F6YIi7gZlyE5XbktHeTdnqw6z09g7JspulzjbDbN8/VvjsBanQVOBbOymBeNL2Z2TzRD0CcBU59lan0FPejEo3ee4HOIN79P+FUThGUWzAq0pxojijpRLT55u3HKX95lB0IYM0KGyxLDh/7gha2q7YPJEXGv48lAItc4noW/bnl4vKHDe/9c8TzzArd30KGuCxWMxwbCDN8swQN0tLH91xB8gljc+dnBGcHrL2iGwsIGi9GjsacWTyAiSmBGDDM9HStjjsoH6O1GmU4djv7i0z9vZZq8e7bbhHnG1Bt3wEDD5JboFHUm142HFRH0QjLKjG6tMZI98mGX1qgc2uKEoS3h1BVykzoW288msAMG0XIIR+8SVHM1EYHmKERYt2/3zQtvWqSXPD6BG/mepnoiUVi0MyClDoOOoxi8yAVvGbdy3ncUGXROrkA049cDFeLCI2P6qT6nup5X9Q== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TYZPR04MB6117.apcprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366004)(396003)(376002)(39830400003)(136003)(346002)(451199024)(1800799009)(186009)(66556008)(66946007)(66476007)(2906002)(4326008)(8676002)(8936002)(41300700001)(316002)(6916009)(6666004)(6486002)(5660300002)(6506007)(52116002)(478600001)(6512007)(2616005)(1076003)(107886003)(26005)(83380400001)(38100700002)(38350700002)(86362001)(36756003)(81973001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +2dIZjzY43EbP4sRGSTXYhg1oNElFgG7AJAMYZ+t5BiENTDT68kkxruvtpSIkFAZ1JIMP/cs/rVLpwZFw8GPlHNRu7/YVLo/dbRJwzZcrNWDgs5xGe0w+IN3fpC6VpO7twM0YtxJAHoghcxWpGo5N1UVdpbJu+/EOZGhr0l9VAXEvMicQqPEfLbvpe9zGczg0Hlpdm32Aa01n5MJEED2NnhVdO40KiA9COLViJaMTKeoeRYe7j3p4dqx9L4Ndvw0bVoHspj7iSXJnnVQ3UOCmIui2TLEaNhvvNT0nThDPtnuFjIkaRRLaUfZWRzVmiFu1u46xzeQnAnau39XaSaVUstsIjHijA0aWg/cJKY08BN2bYNADd3UO9cSM9qJ1ls8pAQZ5xL8aiiwBIKMbY8cWV8LTYL1RGQgrSeOxcqR+CJXTJ40+OJOO9l7lvz5IMxolmQCNJMO0jSF/d+PlYPzo1ynMl6nXRDH29sByNPpQbxFP2j293fMQqhm8R5esEl6SID0irgnlRIQn6sAe8yoUDLPyq+msLvIIGs/UUVRAk1UqfrVV3zBZmSpWvPQp/jFjcVqiEeN8D36NaZQqFAQHgwReQsBpcqCDxdt+g85UwOQU2p0nR92SIEV/KfOduZeAMmtkeNfj1Cu3MekupJJaq/3dI/SWGkyBiYP723kcV91ptnFxXBf6aVwAUuYwKZcibE3xUfYRkRYdCZlMh2yhWnqv+RTT2jjgCrYYpgMYiTMSOWMLrbGCth0m4H6fSS/QWaxm+aWHqigKgyUPN5vklim5Jucff7Tf34MCoK0yVZkpq2fq34m8FPkK7ywU+ymCh9RTvlmog/ogl3voP2XbHK5DMJlBr89lrHqeFLCqxwdIVAzhPitsRCWXM0q0HmPvrzJvGgs8BkbyosWSreq6Vkw0xdoSCbibAuxIKwJcwrbZ6EmiTChoeb1PatyrcbmsgnoYwDWKj47svzY5rBMjbeqdpeXiiGLXliKwkr7XIqNF+TGQBt0MAm1yY71Io/cXWoH1/GeWX5FnqYPtF+5NwBmgUG7/Px9Z9cqg/cZRIiVUcErCHfInSHVbiilzAvng752wrmqUApL69zUj1I+6leADykwSctx7NinH43tJ49n0PsN/Puj0URtvTO5mbqdgsOCxllS2/sZvNp5E0AMcbUYmT+D6q6pa1iaTSSOxxMqxnOGINAUlY8LP+/7kw5H6F53ItecD6vVoy9Bgz58MFox9JxLob30IeR88IkMtvGiaYkIoJxZVKyUnittA3KolMCwfjxq/p6Bz7E1Tzg5GIBV4ZTUHMihQP7p1spiYhamvhnbqZHtd7uTjPBI6Utma2nKnDQldeqT61Gk8LnLctcdXTuChwmDM/+9YfcFkDapWg9pefgwYtVQ3rnAtLp2hAjA+YmlYXyyyW9oYyfzlLUZLUCUt7iCLyG830ej3gISgZC3jsfCvTAUBVpJzetyqnSWSrceePexCN+M0oc4GxiDDX4DGwCGLrIAcZO0Uh4tuW3Gk3zE9STnuV+kyTCXfUGN7AH+CaLRXSPUnDRK8makRLe/3ogaQ5RLJg9lnBINtaGyWgGfqkCo+3hzE37//iskHQ6msOARnVxM32sTVw== X-OriginatorOrg: cipunited.com X-MS-Exchange-CrossTenant-Network-Message-Id: d0b919f6-9f31-4311-42dd-08dba1a10696 X-MS-Exchange-CrossTenant-AuthSource: TYZPR04MB6117.apcprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Aug 2023 17:15:17.6705 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e31cf5b5-ee69-4d5f-9c69-edeeda2458c0 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 5UYKrfD9J7FYfiMglBzaTyCnomrDkI8sdpZuuHVMpFMBgHTx4sgIv8xU5wHVTS5d+jwA6vIOlGo0sXBTqlqXly00uWKw7t1kZn8reWHgCgA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR04MB7284 X-Spam-Status: No, score=-13.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774769129335262457 X-GMAIL-MSGID: 1774769129335262457 Following the arrangement in GCC select a 64-bit ABI by default, either n32 or n64, rather than o32 for `mipsisa64*-*-linux*' targets, just as with the corresponding `mips64*-*-linux*' targets. --- bfd/config.bfd | 8 ++++---- gas/configure | 6 +++--- gas/configure.ac | 6 +++--- gold/configure.tgt | 4 ++-- ld/configure.tgt | 10 ++++++---- 5 files changed, 18 insertions(+), 16 deletions(-) diff --git a/bfd/config.bfd b/bfd/config.bfd index 29f1c77e11f..5ffbd30139a 100644 --- a/bfd/config.bfd +++ b/bfd/config.bfd @@ -957,21 +957,21 @@ case "${targ}" in targ_defvec=mips_elf32_be_vec targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec mips_ecoff_be_vec mips_ecoff_le_vec" ;; - mips64*el-*-linux*-gnuabi64) + mips64*el-*-linux*-gnuabi64 | mipsisa64*el-*-linux*-gnuabi64) targ_defvec=mips_elf64_trad_le_vec targ_selvecs="mips_elf64_trad_be_vec mips_elf32_ntrad_le_vec mips_elf32_ntrad_be_vec mips_elf32_trad_le_vec mips_elf32_trad_be_vec" want64=true ;; - mips64*el-*-linux*) + mips64*el-*-linux* | mipsisa64*el-*-linux*) targ_defvec=mips_elf32_ntrad_le_vec targ_selvecs="mips_elf32_ntrad_be_vec mips_elf32_trad_le_vec mips_elf32_trad_be_vec mips_elf64_trad_le_vec mips_elf64_trad_be_vec" ;; - mips64*-*-linux*-gnuabi64) + mips64*-*-linux*-gnuabi64 | mipsisa64*-*-linux*-gnuabi64) targ_defvec=mips_elf64_trad_be_vec targ_selvecs="mips_elf64_trad_le_vec mips_elf32_ntrad_be_vec mips_elf32_ntrad_le_vec mips_elf32_trad_be_vec mips_elf32_trad_le_vec" want64=true ;; - mips64*-*-linux*) + mips64*-*-linux* | mipsisa64*-*-linux*) targ_defvec=mips_elf32_ntrad_be_vec targ_selvecs="mips_elf32_ntrad_le_vec mips_elf32_trad_be_vec mips_elf32_trad_le_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec" ;; diff --git a/gas/configure b/gas/configure index 3c80fe5741a..1827e38690e 100755 --- a/gas/configure +++ b/gas/configure @@ -12256,11 +12256,11 @@ _ACEOF esac # Decide which ABI to target by default. case ${target} in - mips64*-openbsd* | mips64*-linux-gnuabi64) + mips64*-openbsd* | mips64*-linux-gnuabi64 | mipsisa64*-linux-gnuabi64) mips_default_abi=N64_ABI ;; - mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* \ - | mips64*-kfreebsd*-gnu | mips64*-ps2-elf*) + mips64*-linux* | mipsisa64*-linux* | mips-sgi-irix6* \ + | mips64*-freebsd* | mips64*-kfreebsd*-gnu | mips64*-ps2-elf*) mips_default_abi=N32_ABI ;; mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu) diff --git a/gas/configure.ac b/gas/configure.ac index 3a04c39d344..ecfab6bf510 100644 --- a/gas/configure.ac +++ b/gas/configure.ac @@ -394,11 +394,11 @@ changequote([,])dnl esac # Decide which ABI to target by default. case ${target} in - mips64*-openbsd* | mips64*-linux-gnuabi64) + mips64*-openbsd* | mips64*-linux-gnuabi64 | mipsisa64*-linux-gnuabi64) mips_default_abi=N64_ABI ;; - mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* \ - | mips64*-kfreebsd*-gnu | mips64*-ps2-elf*) + mips64*-linux* | mipsisa64*-linux* | mips-sgi-irix6* \ + | mips64*-freebsd* | mips64*-kfreebsd*-gnu | mips64*-ps2-elf*) mips_default_abi=N32_ABI ;; mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu) diff --git a/gold/configure.tgt b/gold/configure.tgt index e2e131bbd84..99a5fcc91ee 100644 --- a/gold/configure.tgt +++ b/gold/configure.tgt @@ -153,7 +153,7 @@ aarch64*-*) targ_big_endian=false targ_extra_big_endian=true ;; -mips64*el-*-*) +mips64*el-*-* | mipsisa64*el-linux*) targ_obj=mips targ_machine=EM_MIPS targ_size=64 @@ -169,7 +169,7 @@ mips*el-*-*) targ_big_endian=false targ_extra_big_endian=true ;; -mips64*-*-*) +mips64*-*-* | mipsisa64*-linux*) targ_obj=mips targ_machine=EM_MIPS targ_size=64 diff --git a/ld/configure.tgt b/ld/configure.tgt index f78ba07e5ca..92b1ac8f95a 100644 --- a/ld/configure.tgt +++ b/ld/configure.tgt @@ -585,21 +585,23 @@ mips*-*-vxworks*) targ_emul=elf32ebmipvxworks ;; mips*-*-windiss) targ_emul=elf32mipswindiss ;; -mips64*el-*-linux-gnuabi64) +mips64*el-*-linux-gnuabi64 | mipsisa64*el-*-linux-gnuabi64) targ_emul=elf64ltsmip targ_extra_emuls="elf64btsmip elf32ltsmipn32 elf32btsmipn32 elf32ltsmip elf32btsmip" targ_extra_libpath=$targ_extra_emuls ;; -mips64*el-*-linux-*) targ_emul=elf32ltsmipn32 +mips64*el-*-linux-* | mipsisa64*el-*-linux-*) + targ_emul=elf32ltsmipn32 targ_extra_emuls="elf32btsmipn32 elf32ltsmip elf32btsmip elf64ltsmip elf64btsmip" targ_extra_libpath=$targ_extra_emuls ;; -mips64*-*-linux-gnuabi64) +mips64*-*-linux-gnuabi64 | mipsisa64*-*-linux-gnuabi64) targ_emul=elf64btsmip targ_extra_emuls="elf64ltsmip elf32btsmipn32 elf32ltsmipn32 elf32btsmip elf32ltsmip" targ_extra_libpath=$targ_extra_emuls ;; -mips64*-*-linux-*) targ_emul=elf32btsmipn32 +mips64*-*-linux-* | mipsisa64*-*-linux-*) + targ_emul=elf32btsmipn32 targ_extra_emuls="elf32ltsmipn32 elf32btsmip elf32ltsmip elf64btsmip elf64ltsmip" targ_extra_libpath=$targ_extra_emuls ;;