From patchwork Sat Oct 7 15:48:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: YunQiang Su X-Patchwork-Id: 149597 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp992295vqo; Sat, 7 Oct 2023 08:49:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE0GCA8kmFKPTMiwjSlkOFsdCSo1ig7iyU2GXFD/p6gk43pd7UQtbKvHXEFVaYGK5N7aZWm X-Received: by 2002:a17:906:314c:b0:9ae:6a60:81a2 with SMTP id e12-20020a170906314c00b009ae6a6081a2mr10248632eje.25.1696693784768; Sat, 07 Oct 2023 08:49:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696693784; cv=pass; d=google.com; s=arc-20160816; b=dK2TkPlmIeSWuXZhbCmGzQexvaV+C4ieBxe3KBy1KHBlIoEDaCb2FiwQN5IGjIHi+6 BFGYjs1a73quMTh4C2TZM48bL52IUvmFc6O9QOc4DRc/IQBNyUi+Sufq2kgVBWhBTaLt n+UAnJmAX2+5Nvu0x7YLBGCQ1/q5PVWa7wA2nC7S3qXrq0oXPnCIp15cLsn/yiS9Fa0/ gRqTxL9MDjmIHEmiRub8pmyzuaEcYJqwpQa6RLV+/FRdFPzgNVvXGfwsg8vV87PGNQjm ksrYuJ1EfsYIBTktDBtjA1CtmRvc2p396RCwjWzn1tBPxjUNzE/UXo0Q+IkWkMREdQ0l ASdg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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=s+bBpMlfFYGZI7DDXIBCBVtBtkVsktndirPPsyJ67y4=; fh=kxm2C2wSsiOJ6uzYknWdJXzhjqpAT3BNcPQeQ/2BlkQ=; b=gXLQigkssiyC9wU5DLsRxECpRJDWR+z4sLGS3I7qqhnVPIFdvez3cjNYrETEfyGoC4 7Grp6TRWDbWi4oGX7icvl1ghvtqEYm1DQXMx2EqykYk6u2D1hdY3ywNLCPZPDg2lFHEC j0v1PLm0GipxDYFi7ExV1KiWyfOJEONYVa5vbVFNxKgDJwvfxWtGqKnEaZLPLwlLMZIi z7kqjdLJuDXksp7luc+4W5njdB4j7PUu3oPso4kEiIjbrHcj68ru918FmNkmoD33XkdG V0rE3J7hZMV1aUQHZnjIGdiPzcl6lusqwVZ66IE8RK1ye5W8mYFBYZHstJVHbcYOlsYQ DafQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cipunited.onmicrosoft.com header.s=selector1-cipunited-onmicrosoft-com header.b=bx+FzRii; 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 ss22-20020a170907039600b0099ca94b4d01si2678934ejb.705.2023.10.07.08.49.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 08:49:44 -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=bx+FzRii; 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 7E45E385B515 for ; Sat, 7 Oct 2023 15:49:40 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2128.outbound.protection.outlook.com [40.107.255.128]) by sourceware.org (Postfix) with ESMTPS id CA1753858D37 for ; Sat, 7 Oct 2023 15:49:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CA1753858D37 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=Jg82Vn1B8WKZO7k6L1QBqul5j1vr1CYe/90deVWnAYFHCIkXGng7xyrtrOVrzIexOtzC2xCimR6/SeraGctBFRjAHyqBeHt0AVH2HH/B3S6tIKx2CvJ3ptyk/C4zg4Rt0xQhioHBBM6ii352E++JKFJAV4l6/DzFbyECvwv+EMO2KsDbhHmHjGWInlBFqJ3kvXh2Onr4M4CG1cQY+u3CMum8u81tNtVFizYKv9kXX98mCOa2K5aAvIHN3RywZgypGqU8hAtSHIexUZ1tfSNWElLgFYbW1GuXF356Nv6c/K/KrA5Z4aKQkSV33FT5/qoc3TR1HIWXLWBU70VOxLAGFQ== 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=s+bBpMlfFYGZI7DDXIBCBVtBtkVsktndirPPsyJ67y4=; b=Hq9njJSSFZQvSkr1SADK7LvJwOWl+OdZNypAlmsG8ry62yWILwyBXK583TKW6hv+3Fvi5pvpTC/BHfixSrKmei+7xrnzUTRFe0ASXGhV/ICOhL+8ymEbrtoBWaHFhcnuC6KXCmH0tGkFflm58YrohdIBqncFRByHIRApllrTnKtnF03KxI4tqMD31AnhhVrOYAtGkFnBuRspoZXwUy4N1aU8fkall/zs4gehhS1K4dqPOFaz9Wib7y59vKeW8yPoubJEysGil/mtI1JXqyuTTsG4OrfXeWl7EFUnxbyKYh5IJRaPBSIgwG92y5jkfsh7N543Zh3cYy6T8JEHw+PUrA== 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=s+bBpMlfFYGZI7DDXIBCBVtBtkVsktndirPPsyJ67y4=; b=bx+FzRiivh8UowHcBFkDOS8FXG+DPN58QLskQbE2CfNO/n3QyPioYjiCtEqztz12P35WyJ7wbbML+H+knA/BuffEDbhxaLHHLKwNWDGfTAJsF2jIWZVACMPcSohIV82volJivwu/DnXAkmLgtQ+oGKXCkcp5k3EFP259gfhclto= 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 TYZPR04MB4510.apcprd04.prod.outlook.com (2603:1096:400:55::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.41; Sat, 7 Oct 2023 15:49:28 +0000 Received: from TYZPR04MB6117.apcprd04.prod.outlook.com ([fe80::4dd8:54b2:69ba:2768]) by TYZPR04MB6117.apcprd04.prod.outlook.com ([fe80::4dd8:54b2:69ba:2768%2]) with mapi id 15.20.6838.040; Sat, 7 Oct 2023 15:49:28 +0000 From: YunQiang Su To: macro@orcam.me.uk Cc: binutils@sourceware.org, YunQiang Su Subject: [PATCH v4] Gold/MIPS: Use EM_MIPS instead of EM_MIPS_RS3_LE for little endian Date: Sat, 7 Oct 2023 11:48:38 -0400 Message-Id: <20231007154838.3273803-1-yunqiang.su@cipunited.com> X-Mailer: git-send-email 2.39.2 X-ClientProxiedBy: SGXP274CA0003.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::15) To TYZPR04MB6117.apcprd04.prod.outlook.com (2603:1096:400:25a::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR04MB6117:EE_|TYZPR04MB4510:EE_ X-MS-Office365-Filtering-Correlation-Id: a915b727-5276-468a-72a7-08dbc74cf0b1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: i24s6BSXhz02eTwkF32oYNwYMTSd53ah1eh2M+t7BkggrUL2cDTFHgudLkuSXPaWHYkxGua7CkFKXhuM0z39hiNam72iytR0mOVXonxp7KExIXmeZ1i96/3XFKxdTKYGZTxKtwI3mkQHkRQVoYAXBNW8TFOTACtcrpwHDZdxYMvcEGiYJHmnG14enfO6kZq2U1LhFS2qp1KTyRI7rAPlO3LKhNvNmBasP9hmdwpdTX9xRNN/fI1lsSA4yHJfkj+x65louyOADgbKNYks9FhK2F1jijmRhb59snb0p0iLJ1d9Lbwlr5uBNwamehtBG4M4YCXglnXQJ+R9tgjMJ69bYXEshyv6F8VcYQXggdSL4Tj9KZYpVVl0tIgTCzcFSlvegHeARHDo/+4IpDtI3USLhYTbbb8dgMH4INxK0IjOZTkBDzlUaEz6obpsejSs2htXhfAEScAWUFGLiRIo5XHkPpDnfvW8fc2rvg4es1wFPP2COvdOyRdATIFwMYgdaUPIIxwZnd/R5NX+90u4+GwCdcljXX1qXf3TYfNRQ0GeuNa93fOA0InwxmjnH5Z2dfXv47/I3kc3Cj/AVDxRdjCPTVXxEP+Yb1mTwVICcXVqDh1kY33WwSvXOksmQbvY3APL 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)(39830400003)(376002)(396003)(136003)(366004)(346002)(230922051799003)(451199024)(64100799003)(186009)(1800799009)(83380400001)(1076003)(107886003)(2616005)(26005)(66476007)(66556008)(66946007)(316002)(6916009)(8936002)(8676002)(4326008)(5660300002)(41300700001)(6506007)(52116002)(6666004)(6512007)(2906002)(4744005)(6486002)(478600001)(36756003)(38100700002)(38350700002)(86362001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Inklr5mBBOAtGd0l++TDjHGAAMjFSBhweCSEHDS6IhdYT4RltI4lAUD/Mb6iv8wr7kNb5PmVFgWvHvxX7KkDrQO+ZaHWNEMRBEHElFCYq+e2S4acAcO363r9faWhofuPEP7B0Ch/gt5NhpS4N2V2lTXA1zO57dh/M8O1npr1aUkvgyt3JmZ04YgJjyO9wp33eyJfr3mdgTQebvO01KCGRsqEr6is5n7EaNrZvqPJtHTLLB+en3F90djHxo8Ym65Ls8o2hHzoySDNDFn9E9Q6EcAJiLce5GwpR1vNUWWgljIghTESocPBIiYOAKa33t3mNbW2Ra1ear/m4r0xEr4p9qC+A5YcXokyX9q4X7c4HwB0QQT+BHiqLuVvVJEIVmriXQIpV0lJSz3P7YtRkom+YuonGCzbuQo6aVRHsT+QaUgKYF10biiyItiHB5d8HuD5/LMt31WnMXOB89FaCtZsDVb/EKrMZYa65Z6s77fkY1J+rncVH16AaOrYfkzW9voqdEcE38Z0SS6KeIl1XEW+/Cfq7ugRlze2zup6bF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== X-OriginatorOrg: cipunited.com X-MS-Exchange-CrossTenant-Network-Message-Id: a915b727-5276-468a-72a7-08dbc74cf0b1 X-MS-Exchange-CrossTenant-AuthSource: TYZPR04MB6117.apcprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Oct 2023 15:49:27.1760 (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: Lpkdrgn6lnbzwSax6jCh3rFUvIW6Iq3IGHyL3NVSL2Sj91V5Jmuz6PPhlP9AitkdckI4XB9CUL9OqP1bEDFI61qTrCf16eqh86Sx6o0BoEk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR04MB4510 X-Spam-Status: No, score=-13.4 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.30 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779112382346404077 X-GMAIL-MSGID: 1779112382346404077 EM_MIPS_RS3_LE has been deprecated quite long ago, and in fact most of current LE ELF files are using EM_MIPS. This problem didn't make some trouble for us, is due to that gold is a linker, and all of the inputs to it has right EM values. --- gold/configure.tgt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gold/configure.tgt b/gold/configure.tgt index 4b54e08d27f..751c8fd06c6 100644 --- a/gold/configure.tgt +++ b/gold/configure.tgt @@ -155,7 +155,7 @@ aarch64*-*) ;; mips*el*-*-*|mips*le*-*-*) targ_obj=mips - targ_machine=EM_MIPS_RS3_LE + targ_machine=EM_MIPS targ_size=32 targ_big_endian=false targ_extra_big_endian=true