From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2100.outbound.protection.outlook.com [40.107.215.100]) by sourceware.org (Postfix) with ESMTPS id 9F6653858C2D for ; Mon, 13 Nov 2023 05:06:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9F6653858C2D 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-Filter: OpenARC Filter v1.0.0 sourceware.org 9F6653858C2D Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.215.100 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1699851992; cv=pass; b=xHkNux9DvUmck2GKm16kXZyBqh1vwJQivHPog34UQs49KQj82xxmYYkC5EuOT4AWdf04o9mmMZHkAoaoZlZeMDGkCVz8iI8OstpKo4+t+j4XH9XpQtLuByjcOJAn4ELQt6pO42HtT4L9ICB1S4eEGcJDSRhQl8npqswWJuBdo58= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1699851992; c=relaxed/simple; bh=vd6FIKvQyDRjg3WNjdb7gPAhDrNteFqyCSwUXMxURfw=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=ieVJcOf/39Bhe+2/ETZg0w4FXbZ9/uWPYM4doauHh6aNmVk8q0qVk3gMFd1bskPUWk20wPN0/lJrsG1TQ+tzPVTLo7ynaDbi55uHpVD3kGruz9/wDQmluUu7T+Oh5zVfgkStLhT/427zW+c6KWQiT1ZJW9fV8rF8HUF0+giPR/8= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fmbBq0co43Kxgb1+zOS1ld7W39l5i22pQpTi7qMsvuWUiO1F43B1PDKc9EDbcJaGhL/j8XfggD9K1LGvCaKqQa/DuaH+y37rr8BcTgi0EBWe+lnC0fw2D+pZdvdBl5Wtq1dV5g66vsCJLWIshPxCF1KKzfA9Of1sC+EbztQxFSqx1G98KrXbJOlOKgJTwNF7JGxyuHyDXKdqXLdcFj2+75oxqhieWIulsOMJROViVducokc4lxpu2zzYplReoNjWS8zfW3TKOnkjWub0UKkjXTDLsn1BQTzavUiKcp7oxSbau3A0subflG49P+XmGg1aoVSm3fDbJxezrrVMmsrlVw== 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=uG5T6zRt3ynEHhyvT9ORWEGpFD7j/OANu82MRiKGm40=; b=j+ilBASRtyKlhFAewwPxVsIWWb7lPV7vkJOyev2dnlNIeUwOyBj5ov4D1CqO35EFRxj7Mk6MPARStgU61oldGgOPo2JtmNGttCT9QTbu1X6UM8v4QR14tZ3Khq0cYhAHIXYnMMx+GDQ1da7jt94WjVDvgfI1UDJoA/fPuBt/NVDaluFekNANz6/cvSFgVsognFBoahwzF/s+mCrHvzmUnD5C8Gl6POwzy1+DYEuqA+Tq77nTueAiXfQM2DF6F7vu5ywaC9eRUkEu65WdD6VVE5rXoClvxdapiDc/z6PJXQROyjlODyNZlx/9fO+zZAA+Pzki3wnKDeqv7BzW415zpw== 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=uG5T6zRt3ynEHhyvT9ORWEGpFD7j/OANu82MRiKGm40=; b=jCiminT74pHiasQQrkQVcn7D/uW2/HP9pxRy5lp8iUyOG2L4MvvvsM4Tvd3ZzJE8yRAwZ9azGGOvI0NPK7wuV/Y0wk7uS8G8qloQfBfOWyv9WW3Wu8sQxtLYt/iOsEQldktcmNXjj6ZHqBNxF3EJBKC7ssP8wy7l44UZvJ1+Sy8= 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 PUZPR04MB6295.apcprd04.prod.outlook.com (2603:1096:301:100::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6977.26; Mon, 13 Nov 2023 05:06:25 +0000 Received: from TYZPR04MB6117.apcprd04.prod.outlook.com ([fe80::41df:8aa2:5d9c:5f88]) by TYZPR04MB6117.apcprd04.prod.outlook.com ([fe80::41df:8aa2:5d9c:5f88%5]) with mapi id 15.20.6977.029; Mon, 13 Nov 2023 05:06:25 +0000 From: YunQiang Su To: nickc@redhat.com Cc: binutils@sourceware.org, YunQiang Su Subject: [PATCH v5 1/4] Gold: Add targ_extra_little_endian to configure.ac Date: Mon, 13 Nov 2023 13:05:46 +0800 Message-Id: <20231113050549.702494-2-yunqiang.su@cipunited.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231113050549.702494-1-yunqiang.su@cipunited.com> References: <20231113050549.702494-1-yunqiang.su@cipunited.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MW4PR04CA0108.namprd04.prod.outlook.com (2603:10b6:303:83::23) To TYZPR04MB6117.apcprd04.prod.outlook.com (2603:1096:400:25a::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR04MB6117:EE_|PUZPR04MB6295:EE_ X-MS-Office365-Filtering-Correlation-Id: d414e6c5-bfe1-4e7a-a365-08dbe406490f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uO7OTKThZz7SRhgFPftaLNYcpPW87NQYsiUCp35/4WHu/ewxAd7AI+Vrpgc56X1u9kuPZpKSZv8+giWX/w1JmiLuQ5PXO8F+u4r5iyAW8EA5TWNow5yGNldqJgdeEXWy5gJRlqUVnbegfBxZfw6FIB2aZYDM4sseomrHgP2z+BavOCz+sM+7rK32Q1ptD2GHs6l8bYBQnI839RGZKCHNwDTZvLnh2A30vVrRpgQohoI7kguHnQL9/nMgFFXhhrwcm8DjIzROLRVzNbH5psuyacjKVmbLn2XfuaEt8+ZluFU0ZYbl9NgEPKHT7NNWCw3wnmM7NfaN4tRqdp0NJqSyERQiF5rxq0Fax3PGdwv4WmWlJA98c1p0qzLG4qCtbjoCzvGhjIgqjaBkK+c3pE0RV6P4Y2lmp5x9AcH8iesx0HSIw1Z86nvNZct7R9k8rKFtcujZlBPLHn7COlnrDveZi5x5xNNrG8ZTP6+EFYSFXUDhWhutvF4VvV06STIsAMoeZj65L+ANM6t3uBKYGSMmSgeN69eUGGfYCMrOJ5YCe3v/Ec3r3BFv+Cs5qtJnWhuCi3Dlrqf5NO54XSvqrwkqmp8X8qSFZ/aq8rr04OEmE3tm2uGWAZSCsOjm4gjfO4st 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)(366004)(136003)(396003)(346002)(376002)(230922051799003)(451199024)(186009)(1800799009)(64100799003)(107886003)(2906002)(38350700005)(1076003)(2616005)(5660300002)(86362001)(41300700001)(26005)(66556008)(66946007)(66476007)(6916009)(6512007)(316002)(83380400001)(38100700002)(478600001)(6486002)(36756003)(52116002)(6506007)(6666004)(8676002)(4326008)(8936002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-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rdSBD6hRvhWGHkpLT6vmhQJldy8KdW+jwXtNBINJWi1v1Jnz7AaY?= =?us-ascii?Q?c+ZZjo6HdN9JZXse/Wk9mDsFj/xmvRE7UkIsxJdVRan23L95gqt+wTHHQ7up?= =?us-ascii?Q?k9FfkoW3QhP2BfrqoP+yxILsO1tdwM0C6sTI1mndxQ9fSWa2axwpwvRTPC4F?= =?us-ascii?Q?qZx3i7lKzWS2HgJPqLiaw+IBeKNw60HOwDlr7zfqdM9IMrzaEpHGZI4bYize?= =?us-ascii?Q?9C4E4qXn33fMSWxS1ldJyHUJlwXTocvzh1/kODziZIKEUqZktWj/TJZhPp2j?= =?us-ascii?Q?3HqwISxVNfZdWvmrLI26GFIGOXV1ddtztND5K+6AcBspLUChQUYDEk7tCvtu?= =?us-ascii?Q?33KLcybbynnDJE1a+4EThXN4StDe38L9q+M3ARQFXPndF37IOc2xQDrheaT6?= =?us-ascii?Q?FEU3HyA+zElyJ/Eh8eBnPboozG/JYm/kPzNPdiu/t28WsdBO+42S+gh1e32S?= =?us-ascii?Q?K5pTmt9obhbuUuJ26hYdzoxFML9uQZvLS0yhRXuqrmhSGuxLXl7gZSDEXGA2?= =?us-ascii?Q?ouawA5usssAEhiXNzqmA4WbGMgJGYruigVTr1IDA60Rh5drSLzY6+YgoSgWb?= =?us-ascii?Q?eQIAN7VrcFIRm228gJAGk8jxl9Wi5+UZtgCTH10mMzzUGjCKXn3ApBDGF1Am?= =?us-ascii?Q?kz2It0W994ZNjHa3PTOWpv4dpjFD70omzLmJbc1uZgO1W5/bNfeqN7lHk63u?= =?us-ascii?Q?PhynT6KqHKuHsTR8WMOK7xb8QWVocLOmPXS6t3t8WSkoZhnH0DHzBEyTnwVJ?= =?us-ascii?Q?Aw=3D=3D?= X-OriginatorOrg: cipunited.com X-MS-Exchange-CrossTenant-Network-Message-Id: d414e6c5-bfe1-4e7a-a365-08dbe406490f X-MS-Exchange-CrossTenant-AuthSource: TYZPR04MB6117.apcprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Nov 2023 05:06:25.1402 (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: XV3Dp9R90ZVH/AVLBnBhdlHpO5NcMgrSGwZT7bdBla/LOm90sA36dx1WF2SU1UV0ZtFe5Lns33TqeYWLV8ppyqnpRI/KhOM6N93KOaPZNdM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PUZPR04MB6295 X-Spam-Status: No, score=-13.1 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,T_SCC_BODY_TEXT_LINE 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 751c8fd06c6..996bc901d1d 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