From patchwork Mon Aug 28 03:49:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: YunQiang Su X-Patchwork-Id: 136997 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a7d1:0:b0:3f2:4152:657d with SMTP id p17csp3097841vqm; Sun, 27 Aug 2023 20:50:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFLIt0LE5FjySvP3jXYmbkxJWiIed+PARisQFQqq4Jv7gyBWoOWzFFdlM/Y90BDrj2nfZFo X-Received: by 2002:a50:ef0d:0:b0:52a:250e:a04f with SMTP id m13-20020a50ef0d000000b0052a250ea04fmr9723485eds.33.1693194633086; Sun, 27 Aug 2023 20:50:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1693194633; cv=pass; d=google.com; s=arc-20160816; b=Wh50wKUUP/Vh8RJoBZJO/mXM9r0VY+M2tVzhsMcyn7jAqevbxSVDVMa++py218Mr6C S8jas+bno7coE1l5aa+YWvtMyTi7vs1rPDkPl5XUDZJVMNbNZ/z6TBKI3EZ3VXUOpa8b 4qqBwHS69Ajn7MiW2znc1eLjuBpS1SLuUn1zLR0YM6q3YWmMNijCS1FeNsmxCK4h9nIR MYB2A8iWl7JupOs5nsaP57xe9BVrRVT9VAuUE+U5gE8nYxDWzhHnDER3865vHzpsLm+r xOTiIk4wUmhHJpSnMkWBSShDknmmJvdLPyj5V2I22e/ljwGnvorqNszD5JaJqvH/neGJ QWyA== 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=NCcE2ZBpxXL8toPVLtzlabDzMlATFt7sPxPUX5Fpx2s=; fh=sT7QJkKMiMgzlfHKzqKsfXEaRdHlymnKRKVxBfatNUQ=; b=XJ1vcqwrJVstMatV0j+s2rViEkQs2QfivvS2PTF1mM6+wQV8vs0RLk4OEsk9wgF7NG otXTd0O5YFN97mecGWP8hnyzX9lX8Kecdd7mGnIO2O3BrMRmFlSnHaeZlwkDuENEespJ gWyp3Yt5p88sweQliHVga8EK2PrkFisjw86DAGpXf554LhwEsYiXf/9+BoGassKEe4JA +V/FoFInojbjM1JpTq3pXR+tk3MX0v1GibNBDdGuH1rq6cFgZ2XKXpE37HbxiDO4vfRC OKXETY1gdD356nONmjhkTqMSijxZAUVQKBObQ+tzB5KtMddINDXjJliQsBJTXsZAhCPw xeWw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cipunited.onmicrosoft.com header.s=selector1-cipunited-onmicrosoft-com header.b=CrR6onEx; 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 bo28-20020a0564020b3c00b005257c333566si4180267edb.77.2023.08.27.20.50.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Aug 2023 20:50:33 -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=CrR6onEx; 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 46AA13858C50 for ; Mon, 28 Aug 2023 03:50:31 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2132.outbound.protection.outlook.com [40.107.255.132]) by sourceware.org (Postfix) with ESMTPS id ED3383858D33 for ; Mon, 28 Aug 2023 03:50:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org ED3383858D33 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=Li3NiYvct6Oq8o4bJpwuDMlKhen+aInVABxit7g8TLAD3ML8iPR2CcJyiJnOCoBIxENvzY17ndY+5ReEBk1KtpHSxqGIzqQMALE879U9DjOBk1v3+4sA38udDDCnaP56M++dp77wkACqRXFfCiuB0KuZTzXzlEhBZlzIJw1zcsJGYn2kYWb6B7rE3c/hU/FxLZ1y+V4ppzZaJElhw8MTAO/fejGq0WfzEDf8oiw759QBZpqRq6NnjxHyqdqbLRjxNnOpftWByfpn04SPApwpRo0Ztpt5rfkD3NdTbxeSiRHbTSeDykRIdXQitkLN6ED1O3eTLudU/DAoWeVLY5BC3g== 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=NCcE2ZBpxXL8toPVLtzlabDzMlATFt7sPxPUX5Fpx2s=; b=NFtwE1ks2aTFf3wNAmfuKtYqOEtSgSnPhf4Gj2nzYrpMhohSZ/BLRItCDbZ8YqQ0gUASZ6VQ5k4EyQfG/01kae+xlbPW5NQJjbUg7X/vIuyy62WyGCrazP7s/Pn9Hqxvy9bW0k+jOJ15P6BUW97B4VSLx4b3U59Men20LHkTUr0i0EOt5PU+IxlGMG9mifMT8FlPoMXGFNqXBOeVoaEboKlCVQ7VIO4V90w/tf+ps6/2aPwF3X+jdssFNJYfzYHzhp82RyxvgATTS1iWDqG7GW20RSF4cBpncnw6ajij3/5HxWB9kcXmT4swFY3ztS/2+oerX30tSWtVTnhRWXDxzg== 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=NCcE2ZBpxXL8toPVLtzlabDzMlATFt7sPxPUX5Fpx2s=; b=CrR6onExfBohqOjZxPyxBWjW8h9HZjom1B2wamXO5wrxqxVezU5KBIy7TvOSlDxd26oiAksl6Pko/+YSQ2+0uUWdrJlfZDdm92ujlv1KJeJY+x+HY85NSbqiVwdIhokVncuxGY/T00jiPBYF+dTH0PxY8RwnRDFwQ1jOk/PDqFY= 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 KL1PR04MB7164.apcprd04.prod.outlook.com (2603:1096:820:f9::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.34; Mon, 28 Aug 2023 03:50: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.034; Mon, 28 Aug 2023 03:50:17 +0000 From: YunQiang Su To: binutils@sourceware.org Cc: YunQiang Su Subject: [committed 1/6] Gold: Add targ_extra_little_endian to configure.ac Date: Sun, 27 Aug 2023 23:49:35 -0400 Message-Id: <20230828034940.2056275-1-yunqiang.su@cipunited.com> X-Mailer: git-send-email 2.39.2 X-ClientProxiedBy: FR3P281CA0113.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a3::12) To TYZPR04MB6117.apcprd04.prod.outlook.com (2603:1096:400:25a::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR04MB6117:EE_|KL1PR04MB7164:EE_ X-MS-Office365-Filtering-Correlation-Id: 023383c1-91b1-4b62-4068-08dba779e48c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 619Moj2OjqFp3C0LSrl1JXqzO03Fr/+2k6ULTFgf1xhbTx1N6coC3QEotp311qHeXstdhbKfonYkShoTvTt1bu7KsCWEqNUOYZr1R06BnPHaKNx5guXncH+XqK1JXH0ReFGpquvZ0sdaz+U0Kgju3lvRWw1lhBbiv0RXxi+qk6I1H6Epbr/eFucI6MLMc7rxrDh6xAIUSjeyUEqCwYqDX/bW+3ydbfNaienRyXsjQQSXAVcHDl6nwG/pnPQiJ5uhCSMiksIz7Vz/8wkfpkRxGyWHb1wEayKGZrcmr66PhyITf/M3u84kVLJSwkBsALtQR7rMLBdCkCz1mUQ6MgCxWAItBf6dDp9F+taXoCbdezcUDgDSUNRV1YChfwB/XMwS3pjPiuzACCp2YhDZpwhfAEY8Hzow7hxHw1yQ70pL3fKn7LvmEFlWighFhXlHf/fgaO7UN8MrIHf7CJi4GaR8HjvgOz9eAjAkIAeru9iVDlRBz6WGe45xPu/8FpC5FZ603etP44WXaHdGHVBgb2Y/F8bJvn+fdNUyzzm3bf30zojI6DOCrgCJoEXaaPOo8jQ2QkDuuHqHjLI9x8vMP+GfAb0jGqDCopNhtE74y0aLjf9D0CStVejdT28fdNB6rFll 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)(136003)(376002)(346002)(396003)(39830400003)(1800799009)(451199024)(186009)(6486002)(6666004)(6506007)(83380400001)(52116002)(2906002)(26005)(41300700001)(1076003)(478600001)(6916009)(316002)(107886003)(66556008)(8676002)(66476007)(8936002)(4326008)(5660300002)(86362001)(36756003)(6512007)(2616005)(38350700002)(38100700002)(66946007); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 1zmz+oHfDXX+h+HgcOwDq3dhUHmZtfohk0dCKQiWQD0ox5lLPlf1InnB3W+lhZjDSGb5zDDpAVukJbsZzfHHW3g999UJ03xwXu+mBwLlEt8j0TSyFOJOVZDzuSv7TqMrrt9k2xudMYA1VFi5nMc+tbgJsAjcNRz2l+jcYjNch+jFSKUY5tdyb68uwFhlW8vochpBxezQ/KOvGXc25pgVGFTAjFCXR8h5LsiS4j5Tv0+rR2Kkg3Hg7zUX7xjGOHcIhYUIWN9VftozGr6PN56/juaXbBT2D+6bVhv49qVcKrm7fMU5jnq2BHfsnGiu+F6/8TaBMy+f7IEhMtA9OK3nM1KJBaKt/PQDSv1KUnJ+140eRB3DFbs6+W/sN3wbWInhqC65pvjeTssk08x71TppWVlznw7om6bswBqTqnTLEXkPdFYXap+eTyvpLfbuT0t5i1uq68XmK0ONB4FIQYeijEe10rFHyBwN/l5n9OvSMoveX8Us6ixg4S4GdQcj+YJHhh1bvSWEUxahMEHdRSBqtC00F7I8t0jK+/7xHRXCOvNrRUeIuDvmM6a6j5Mb3+C8NXpa18vzPxFHHW4Aon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-4b62-4068-08dba779e48c X-MS-Exchange-CrossTenant-AuthSource: TYZPR04MB6117.apcprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2023 03:50:17.3775 (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: fHOZ16OewA67kjtrk4paOGDNXSg2xea2fuGKQDzYDu5updqE2DUHzCWDjsKypsGuStSEx0d/mHRzsyyx/5dyrPsYqIZ748Q+zD/xIvLxuGo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR04MB7164 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.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 Sender: "Binutils" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1775443255489308528 X-GMAIL-MSGID: 1775443255489308528 This option will be used by architectures which is big endian by default, while little-endian support is also needed. Mips(eb) ports are the examples. --- gold/configure | 8 ++++++++ gold/configure.ac | 8 ++++++++ gold/configure.tgt | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) 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..b472b8f0bad 100644 --- a/gold/configure.tgt +++ b/gold/configure.tgt @@ -165,7 +165,7 @@ mips*-*-*) targ_machine=EM_MIPS targ_size=32 targ_big_endian=true - targ_extra_big_endian=false + targ_extra_little_endian=true ;; s390-*-*) targ_obj=s390