Message ID | 20230820145838.1215027-4-yunqiang.su@cipunited.com |
---|---|
State | Unresolved |
Headers |
Return-Path: <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b82d:0:b0:3f2:4152:657d with SMTP id z13csp2517331vqi; Sun, 20 Aug 2023 08:00:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGAQTbKuVYtSVdCu/YS8TGskDawHeXofSSlQsdoxyx8ro+2ROxLIiVly5YTD5GCsbjlarcA X-Received: by 2002:a05:6512:224e:b0:4fb:9469:d659 with SMTP id i14-20020a056512224e00b004fb9469d659mr3548775lfu.23.1692543601599; Sun, 20 Aug 2023 08:00:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1692543601; cv=pass; d=google.com; s=arc-20160816; b=0TwoML/uP4huppdu7oSkZGqlpC6LHyj/8kltLmZU8PNswV4EhipX0TpQIq9ujxhyEj C/8Mtszk/L6jJXKHsE19z/z8FqrB4Ckv7RIT/4VTZ3OvO2MA8De6tWekvdGA9eChZakN n96XGi/4p8B/RRdvsh2rJqptOiBdDjxgjf23IoBHkVZ1zroV2+IQiXdzZiqvvIEwSqpJ WFiE6fqWdfwsc3zAZhDlM1zQhMCbymPPaQPtziIt6ZTZuLfdeTUifKf3R886q55lfEDa fHs24pOtYY2VVe3zefD01ICPkFfmlDCxxSPOmkUZNao3x6cOBMEZUDHa9/wDMVnGT9nG u2Ng== 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=Uelpx9uIrGHtmrGqGPejoWPzrZrHhhoqNOB/mwHg4uQ=; fh=4qBRMZUWHA7PTs7UY/k94Z6q81zwFh+stovgVLyf6l8=; b=fuftiDQoc0FZGjXVnXAzVHPYz3LJYKvhoHmRDr1zC5KS/29q66m0Hs+mJOZL+rkkR9 zXZOs2yKkX+yppYdst7ckI8w/lZRszovndFyvEDXaAA5umoq7DpxDbwTTBCQo9EE8sx4 bZ/CEmPHAjW6yTvq4jFEcNuH31tbv19dvleJfjw5TbjY9JuMN9GdOZB77WXtYV76/Mx3 xcEFxuUfNplgd7AEex4s/wQGwEoAVZorcDQwQiGnZCCP5j7wfEGZ5fYDSs8qRtLHhonj +KRJFAEJUUkB/rJRuGCZAtGwRL4qNeC26wcxldljKGAQodsakHSE9jgM1OHBtrTcAtLm ZEcQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cipunited.onmicrosoft.com header.s=selector1-cipunited-onmicrosoft-com header.b=VxmMPtuq; 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 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org" Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id f2-20020a05640214c200b0052318dbe3b0si4208196edx.345.2023.08.20.08.00.01 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Aug 2023 08:00:01 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@cipunited.onmicrosoft.com header.s=selector1-cipunited-onmicrosoft-com header.b=VxmMPtuq; 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 8.43.85.97 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 C7C6D3830B4A for <ouuuleilei@gmail.com>; Sun, 20 Aug 2023 14:59:40 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2105.outbound.protection.outlook.com [40.107.215.105]) by sourceware.org (Postfix) with ESMTPS id A1ACB385697D for <binutils@sourceware.org>; Sun, 20 Aug 2023 14:59:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A1ACB385697D 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=jYH3GjU1O+VXFQriCEfLcZR3Msnnq60EYcTPDJH/Iy8y83NvvWGj4UavHB5wrjgvd6ugqqLjAocBLDmaAnKaV7FYSgKjCfeF4xbSXTc5dtR638C+r4PbnAP+HOiTQXCaYCgc7gliin3bq7ajfVgYJ9ZwhUAcg2pP9COLo7GAIjksotuKMeCR+ij0X9gUZ8DhFQS2mHX+mL7YgCRq+DUSi0E7gb/O0WCYjMArhqViZYPLaWJ07wmwIH3L5rMsjnf2XdLvFk0pHxUmspMfq/8hcak4eDseMj4vPL/8qZYaPQfACeY0EUV6KTfHZwnfvG0VRRu87L7dZD/G5dcBloqypw== 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=Uelpx9uIrGHtmrGqGPejoWPzrZrHhhoqNOB/mwHg4uQ=; b=OTn22V/mTS+qcTEw4CC5s7IWVZJ+mf5Zl5dluVtpPRzu3lRbV2XKVOVxjnZjVNQPL6FsGuN9pxT3U64heUsHhc5ZnF3wJoWl+GHxWIv6gb6L4XJkjYcKhFIzyBUFaBLzT/piuV1/m2uTxgnv2c/LcIhBuYDpfIXMJTG49plMQjV8Lk2dFXU73kUHIZsrTG0BVR6kIkJ1fx8H/co15KC4SmPkN7u9BAiUfzAs4zB9Y92wOb22qYkygB9y271mMD4/X3uBfdpMjjwMfw1p28DjMQJC+u43eMBdRB1ZWPnhEhmwj++oZEDhc0SplYsbBHajxSbvV+dbIPXZ9XIEtG4UTQ== 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=Uelpx9uIrGHtmrGqGPejoWPzrZrHhhoqNOB/mwHg4uQ=; b=VxmMPtuqaXlnIBo42ihPou+cwlfw4GsYDNvE0ZFMfo+lEY83P/VPViCyqjnSpHCfzXO1/1SKot6/12UOpFHJ1Snm+4PN/LQIwcJxXJZqfPIgHK/hTj7h1JOOumW4Z2sAqol9WhFMz5vLdmFGGf17QaX9tEmo8SBywCE3Hwpgtlc= 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 SEZPR04MB6480.apcprd04.prod.outlook.com (2603:1096:101:ae::9) 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 14:59:24 +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 14:59:24 +0000 From: YunQiang Su <yunqiang.su@cipunited.com> To: macro@orcam.me.uk Cc: binutils@sourceware.org, YunQiang Su <yunqiang.su@cipunited.com> Subject: [PATCH v2 4/4] Gold/MIPS: Add MIPS64 support for --eanble-targets option Date: Sun, 20 Aug 2023 22:58:38 +0800 Message-Id: <20230820145838.1215027-4-yunqiang.su@cipunited.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230820145838.1215027-1-yunqiang.su@cipunited.com> References: <20230820145838.1215027-1-yunqiang.su@cipunited.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI1PR02CA0045.apcprd02.prod.outlook.com (2603:1096:4:1f6::16) To TYZPR04MB6117.apcprd04.prod.outlook.com (2603:1096:400:25a::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR04MB6117:EE_|SEZPR04MB6480:EE_ X-MS-Office365-Filtering-Correlation-Id: 460f6b5b-098a-45e8-b8cf-08dba18e0ac1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AiPvo/A6h/AxbbU8duC/RuinHA4NgFYQuxg32mGo9bwaPGTalfu1ZE4Txf7/duc7qS3ECPb82/7a/O3do7Te0DUogAEgpjdlzUFDJKLcwpdn+eDtMMAEN8gGzJ9xjmLN3JE6WmTpE8DKsaxH9Bh1iJJbiU3DpvXzUyH32sd5NvUp9hkOFvECV0e9pJK1cjyye+CnktB67viZEnfgZMBXWIdiAZbfNw8Wc/+KzUGP3ChZMSKTXdoJXE6/qV6wWYX/xgZQuCE41soNDz9Dpf70YVUGMLuOkqvxPUb1CcwyFEJM0kI9AYQSz8zfVBEgfRJZE6UPXDpTatvT7Mhs6vhICHpCP51tSmDi8AtG3L42vtnpotASaj4MTaf7vAYyDHrqvHZMT76yHxs6koKjqOGoq1PAMuE4XNffDdQhQgU53QeTRxUp584LOnlrUQiGggRhNLJgLOBmMl8yMfjE/zFMqA0KOKurDD04gFp/HJpBUz1fgB2DZKk3iPIHG8N75cjRiWOiHW2d0sICDCocSdQjNm5pBLCFMZjmUvgzwebBbxfRNx1R7w99KuX6ojNBZMW6+TE07HP+6L4KbltYjUN969gt2PzUDlWIy1ZhLiM/K0C5J7xn+alBsep7jy8pYMbA 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)(376002)(396003)(366004)(136003)(39830400003)(346002)(451199024)(1800799009)(186009)(86362001)(5660300002)(2616005)(41300700001)(316002)(2906002)(66946007)(6916009)(66556008)(66476007)(8936002)(4326008)(8676002)(478600001)(6666004)(6486002)(52116002)(38350700002)(38100700002)(6506007)(6512007)(26005)(36756003)(1076003)(107886003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: DEZNW2dvrrIOcWZjx3oFoVWeP7sOjMcP5opk7jhHiwZqgOAsG9uScMKuqVZWRaUAkj9a0KfYbiL4Ay/YHauGErS1zO2Fj7372JkVRjezlk5kDOfalGPQwsoBbgf7R/nNMY8P0D4pT9MlJB0G1NTHxAxp1+S05fIlt8F+PfRDLHesAIP4T2RUGSYVziMqv3lhr6E2BENYvBTmdxfUIBH0KDFp7gCyR0WKzWWa0WwZWIKf3yWZ61wh6da+//6Iff77oZ7NZ07qVN0GJv5ZaULj6zIhevMgFi5s1gbO7XPW9k+XBl8e4FBqJFREu16DtS20aYK1iRDhpwVol6w+Cc1xd8ipOflhY2zNgihtKUXha25DBrIFiWG7uJtSw5J2T0tZC2s7uJ/NiJG2jvNOfjYR3+j2VtGINeKBdELRScBiDbPRYRuRBqzXj9rho7iTg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ZxaoWFIELQQeLacr6ruHMsOcPzOFaby/7WhqgfFoTe8eNlg0hHZMPWhsxVauz52drVcKUiCuTqpc40DWwBuWWdgzdb91A== X-OriginatorOrg: cipunited.com X-MS-Exchange-CrossTenant-Network-Message-Id: 460f6b5b-098a-45e8-b8cf-08dba18e0ac1 X-MS-Exchange-CrossTenant-AuthSource: TYZPR04MB6117.apcprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Aug 2023 14:59:24.2960 (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: GP1Vg0mAMXgqse5wrOH9imQe9M0ujeDHSvQRxxS1GgbIvPlHShp/LrEyi8gsFHiCk1W6jxtM/874+kXKbLNqk1X5FREZ/ZS8Xthhbyl9L5Y= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR04MB6480 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 <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774760599209435904 X-GMAIL-MSGID: 1774760599209435904 |
Series |
[v2,1/4] MIPS: Use 64-bit ABIs by default for `mipsisa64*-*-linux*' targets
|
|
Checks
Context | Check | Description |
---|---|---|
snail/binutils-gdb-check | warning | Git am fail log |
Commit Message
YunQiang Su
Aug. 20, 2023, 2:58 p.m. UTC
Currently, if we pass only mips64 triples to --eanble-targets, gold itself will link fail: /usr/bin/ld: /usr/bin/ld: mips.o: in function `gold::Output_reloc<9, true, 32, true>::sort_before(gold::Output_reloc<9, true, 32, true> const&) const': ./builddir-mips/gold/../../gold/output.h:1276:(.text+0x2b44): undefined reference to `gold::Output_reloc<9, true, 32, true>::compare(gold::Output_reloc<9, true, 32, true> const&) const' /usr/bin/ld: mips.o: in function `gold::Output_reloc<9, true, 32, false>::sort_before(gold::Output_reloc<9, true, 32, false> const&) const': ./builddir-mips/gold/../../gold/output.h:1276:(.text+0x2bb4): undefined reference to `gold::Output_reloc<9, true, 32, false>::compare(gold::Output_reloc<9, true, 32, false> const&) const' /usr/bin/ld: mips.o: in function `gold::Output_reloc<9, true, 32, true>::sort_before(gold::Output_reloc<9, true, 32, true> const&) const': ./builddir-mips/gold/../../gold/output.h:1276:(.text+0x2d28): undefined reference to `gold::Output_reloc<9, true, 32, true>::compare(gold::Output_reloc<9, true, 32, true> const&) const' /usr/bin/ld: mips.o: in function `gold::Output_reloc<9, true, 32, false>::sort_before(gold::Output_reloc<9, true, 32, false> const&) const': ./builddir-mips/gold/../../gold/output.h:1276:(.text+0x2df8): undefined reference to `gold::Output_reloc<9, true, 32, false>::compare(gold::Output_reloc<9, true, 32, false> const&) const' Here, we add: mips64*el-*-* | mipsisa64*el-linux* for MIPS64 little endian; mips64*-*-* | mipsisa64*-linux* for MIPS64 big endian. --- gold/configure.tgt | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
diff --git a/gold/configure.tgt b/gold/configure.tgt index 03e33f32baf..1e6dc18d4b6 100644 --- a/gold/configure.tgt +++ b/gold/configure.tgt @@ -153,6 +153,13 @@ aarch64*-*) targ_big_endian=false targ_extra_big_endian=true ;; +mips64*el-*-* | mipsisa64*el-linux*) + targ_obj=mips + targ_machine=EM_MIPS + targ_size=64 + targ_big_endian=false + targ_extra_big_endian=true + ;; mips*el-*-*) targ_obj=mips targ_machine=EM_MIPS @@ -160,6 +167,13 @@ mips*el-*-*) targ_big_endian=false targ_extra_big_endian=true ;; +mips64*-*-* | mipsisa64*-linux*) + targ_obj=mips + targ_machine=EM_MIPS + targ_size=64 + targ_big_endian=true + targ_extra_big_endian=false + ;; mips*-*-*) targ_obj=mips targ_machine=EM_MIPS