From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: =?us-ascii?Q?1zmz+oHfDXX+h+HgcOwDq3dhUHmZtfohk0dCKQiWQD0ox5lLPlf1InnB3W+l?= =?us-ascii?Q?hZjDSGb5zDDpAVukJbsZzfHHW3g999UJ03xwXu+mBwLlEt8j0TSyFOJOVZDz?= =?us-ascii?Q?uSv7TqMrrt9k2xudMYA1VFi5nMc+tbgJsAjcNRz2l+jcYjNch+jFSKUY5tdy?= =?us-ascii?Q?b68uwFhlW8vochpBxezQ/KOvGXc25pgVGFTAjFCXR8h5LsiS4j5Tv0+rR2Kk?= =?us-ascii?Q?g3Hg7zUX7xjGOHcIhYUIWN9VftozGr6PN56/juaXbBT2D+6bVhv49qVcKrm7?= =?us-ascii?Q?fMU5jnq2BHfsnGiu+F6/8TaBMy+f7IEhMtA9OK3nM1KJBaKt/PQDSv1KUnJ+?= =?us-ascii?Q?140eRB3DFbs6+W/sN3wbWInhqC65pvjeTssk08x71TppWVlznw7om6bswBqT?= =?us-ascii?Q?qnTLEXkPdFYXap+eTyvpLfbuT0t5i1uq68XmK0ONB4FIQYeijEe10rFHyBwN?= =?us-ascii?Q?/l5n9OvSMoveX8Us6ixg4S4GdQcj+YJHhh1bvSWEUxahMEHdRSBqtC00F7I8?= =?us-ascii?Q?t0jK+/7xHRXCOvNrRUeIuDvmM6a6j5Mb3+C8NXpa18vzPxFHHW4AonlBctO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58deBbOUhKI6xhLObDHSLltc4b4W?= =?us-ascii?Q?JpucVHNSa9Ym8MGgJ60LhUqbER85OZ3iuWjB1s2HwFjwUz0ZDic9RSJb0arr?= =?us-ascii?Q?iBNwMCGeyA1k5mHUeOOOk1Lknw9beZkdyxW9tYxFDEnV03oH9hjkiPu/t5jG?= =?us-ascii?Q?SA=3D=3D?= X-OriginatorOrg: cipunited.com X-MS-Exchange-CrossTenant-Network-Message-Id: 023383c1-91b1-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 List-Id: 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 -- 2.39.2