From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,RAND_MKTG_HEADER,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 157F2C433E0 for ; Wed, 3 Feb 2021 10:10:27 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 99F4764F59 for ; Wed, 3 Feb 2021 10:10:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 99F4764F59 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References:Message-ID:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=0IWbCJ2bilMQhJKSxRFMN/22as6Msck19DEWYfK2Z6k=; b=sZ61lH7nb491NrNiAsFdW8HRt HiGr1eaiTCQdpcQwf0JKCMXZ1p46UGs41dgO3uz8qRrFU9fFXt7mK/aJ/Y/+Knu5luTzRs1xix30W ljbHOvKREnr04q/aXAEwck33saVcAlxgDeYyDonuyR7eMd+DAAj+GeBO15oJfpVHpg9Phb933repM 4UZmN7v/stPrCgchwsRBygYOXnq5GLZ6DEqkFgIr8kJPVourxHUaWNR4FScwbW+CFajFpfyi3LpCK RANYXVPehhXtEZTx8RlTxw2zkp0o7HsMfbdEpEt83xHJPOPs97846iPuUaskNomrrfCTqVOUvwfq4 WkiuZu6eg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l7F5p-0000jr-5w; Wed, 03 Feb 2021 10:09:01 +0000 Received: from mail-db8eur05on2072.outbound.protection.outlook.com ([40.107.20.72] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l7F5l-0000io-UB for linux-arm-kernel@lists.infradead.org; Wed, 03 Feb 2021 10:08:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7FcuYCofILzclw5XkjuDy79kkKzPy9j+foP1Pl0QLHE=; b=cdfJ05k1BLS2LrCzIAFvI/ixStcTPskFVJVbRuJdBCdmRbOVVWlGXxPm4vCUtXZ2oQNVnDNwCmgUgQtszReq8josjo8kGtOmvXd9yWXtBjDKkaloH40bGP+3IG/ZlwjuvGXb0k0M2fcfH695qFwWTfP8h0jU4wtsSnpwN/NZShM= Received: from DB6PR0402CA0009.eurprd04.prod.outlook.com (2603:10a6:4:91::19) by HE1PR0802MB2473.eurprd08.prod.outlook.com (2603:10a6:3:df::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.24; Wed, 3 Feb 2021 10:08:36 +0000 Received: from DB5EUR03FT059.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:91:cafe::8e) by DB6PR0402CA0009.outlook.office365.com (2603:10a6:4:91::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.17 via Frontend Transport; Wed, 3 Feb 2021 10:08:36 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; lists.infradead.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;lists.infradead.org; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT059.mail.protection.outlook.com (10.152.21.175) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.11 via Frontend Transport; Wed, 3 Feb 2021 10:08:36 +0000 Received: ("Tessian outbound 8418c949a3fa:v71"); Wed, 03 Feb 2021 10:08:36 +0000 X-CR-MTA-TID: 64aa7808 Received: from 3eac11ef882e.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id A4D2C560-3081-4636-82A4-16E83FD24813.1; Wed, 03 Feb 2021 10:08:31 +0000 Received: from EUR03-AM5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 3eac11ef882e.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 03 Feb 2021 10:08:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RB8lT1rEl4GrPW+6x0kk6SPNQHiZUcZNmsS9qgPQ7HnfOGQWVmsuX/AG4OvMKiPgbTdjyvzdocDYYVtTf0jDkflOhdE4A1EtDk7A99XjddxnQPa8AYGXGUSycgWyOyfdBgtIobcO8p6zQ/lvRU7lR95TUPazQgITnNdgaUwjrbZI04RmJAc8nK70knoE/GEZ6EyDFECf7WquV8srux9ZhScHEtUOGMIWq46szpxOB6zM2Y9rkwWFqCXkOzm36B1TAkdYTurvjulk6FoYaXJHjXOr2Zdnzb0u5dVrvNmho28tleF78/FHVCy1M4M9vMwvJQ1MAArXZ+VZgIBF7Lb7nw== 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-SenderADCheck; bh=7FcuYCofILzclw5XkjuDy79kkKzPy9j+foP1Pl0QLHE=; b=l1e/zva6ZhpMgbPFyG+sQIUrqjv3l4bLa4FBBy+e10RFnrmVhVzKsmU3LGCSkPG3tnG93c7HXnA9sLkgL0UGYAvJsj9NMeMWNDddHqY3s8cGFwmrRapm10gRYoNamF/GPj/o2MXzJokZiDYC+DuaSoR4Mxexs2nLd991aK5/rTyKdkKZ4JMOzHlViMUYXZecGsZbOsId3sVCkUSUFDdnusgAWvSGxlNUa9ocyEBXFkxm/us7YiENj4GFO/R72v6I5jQbAbzk8JUjPAZYBIbQNNLldhnu0LkcebUl+RLx1CvTe1WZNLTxcT3iVEl26XvbMUwxpS2WbKrH5kCJThCE1A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7FcuYCofILzclw5XkjuDy79kkKzPy9j+foP1Pl0QLHE=; b=cdfJ05k1BLS2LrCzIAFvI/ixStcTPskFVJVbRuJdBCdmRbOVVWlGXxPm4vCUtXZ2oQNVnDNwCmgUgQtszReq8josjo8kGtOmvXd9yWXtBjDKkaloH40bGP+3IG/ZlwjuvGXb0k0M2fcfH695qFwWTfP8h0jU4wtsSnpwN/NZShM= Received: from VI1PR08MB3198.eurprd08.prod.outlook.com (2603:10a6:803:49::20) by VI1PR0802MB2430.eurprd08.prod.outlook.com (2603:10a6:800:b1::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.20; Wed, 3 Feb 2021 10:08:26 +0000 Received: from VI1PR08MB3198.eurprd08.prod.outlook.com ([fe80::7c6b:e979:e3b2:abeb]) by VI1PR08MB3198.eurprd08.prod.outlook.com ([fe80::7c6b:e979:e3b2:abeb%7]) with mapi id 15.20.3805.026; Wed, 3 Feb 2021 10:08:24 +0000 From: Peter Smith To: Arnd Bergmann , Nathan Chancellor Subject: RE: [PATCH] arm64: Make CPU_BIG_ENDIAN depend on !LD_IS_LLD Thread-Topic: [PATCH] arm64: Make CPU_BIG_ENDIAN depend on !LD_IS_LLD Thread-Index: AQHW+aQ6VkaIqc08EkKfOjb8LuFdtapGK3ZA Date: Wed, 3 Feb 2021 10:08:24 +0000 Message-ID: References: <20210202022441.1451389-1-nathan@kernel.org> <20210202195133.GA1481999@localhost> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 010875FA393928418D50D38AA7869D3D.0 x-checkrecipientchecked: true Authentication-Results-Original: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=arm.com; x-originating-ip: [81.104.142.31] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 80e7fa3e-9f5a-4d8e-5861-08d8c82babd3 x-ms-traffictypediagnostic: VI1PR0802MB2430:|HE1PR0802MB2473: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:9508;OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: r4B+OS+69BlI8oYgYvdV9Fy1nwE+TcWq2FL4BCC30ZWykGkL5xTgYbb0VBhkiGI+IL4AFV1WaKA0OR3XF9WMDnASVE4/ZI+GPbIEls5GJ32o17iKy/5hSRW862hWlLkpmtkJgjSlWb+6dCkrw6ZhW8ZCu4hM9vTNpN4+AwhhiiddaVpFWZA6kp9NX5E0wGsCVz+13AEX/1729o978S/60XYiw5P7pJZGUTd/u9pdBOVWDGTHSjCA3+uoq4B90uADm9jBrRBHzMurpeFe9PhDiQhQpXLlIUsOzCHteNyqfHY/SkV0NZNEyQDsLe82kUnU2RhToIcfy0dqA1gfvbmtkbDfZp7b8V3Uht3Mz3cc5zBmQSPgdxatiM5mGUTwb3VZx743WJVDdh4r8iGwtNx1/7VhTHBRVW81KbO6ESl43vO+sS8WPqOFHlfq58RpK50Mui4pY2eHUg1I28krOFJY6/sh5G6FsI4PJy40woIDEPWtCVIfFH5CJ/ryzhMeTPuqklQrrr7xFm+sYtF+Ssajl46qquo2hn7TJM8wdAgrtCXaZgS6TxQePp9Xj+M4P+lDwXgil8ZDxf+xSPQhtSXqRD3eZBtdXI/IpCPDIpEEIuI= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR08MB3198.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(366004)(396003)(39860400002)(346002)(136003)(83380400001)(33656002)(52536014)(86362001)(2906002)(5660300002)(55016002)(66446008)(64756008)(66556008)(66476007)(66946007)(8936002)(76116006)(186003)(26005)(7696005)(966005)(4326008)(71200400001)(6506007)(53546011)(54906003)(110136005)(8676002)(9686003)(316002)(478600001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?utf-8?B?Wk1nenVZK3Z6Q2czNU9PaDVTTW9YeVBMalRmd1FMWXJ0VnB3bElkSUttRzE0?= =?utf-8?B?K092NXlUU0lpcGtWQ3NkQ3dqajkranlsaVluTkdIcFMrSjJCUGZQRFZuWkto?= =?utf-8?B?bXkyZFdLbU95UnFTUWpnV3lDdTNueGZ5bGUrT2RJVTVqeTV0NGw5MVJPMEdS?= =?utf-8?B?bEdqRS9wZ2J2WmFlR3YzdGxnMkRUYjJreDROWTFrOXQwYnBvcDIxOVc1NnZS?= =?utf-8?B?Zk1VTyt3U2d4VFZPdGowa0FHZVQ2U2ZXcitCMkUyMFJxQVFObE5rN1lLcEhK?= =?utf-8?B?T2RVakJXZmZSTmxLcFc0ZDZFdVEvbU4vQTFhQXd3V2RUTXdrUExNYk1xb2F0?= =?utf-8?B?SCtDckhENVZ3ak1INDMxdFUwcWVZME0vdGdHLzY5dHpJTVkreis2VS90SC9k?= =?utf-8?B?YmFQakR4aUJoY2FmWDVZcnF6dUpDRVNJUVNia0J0TW5ZeG8vOExybUVPV04x?= =?utf-8?B?bzJTQXhBTHNEZER4UXprcUdNa3AwUHFHL3d0L2swQnFuTFR0WUNtRHFQaUhr?= =?utf-8?B?TkxtY3ZSQ2hUQ0djUlJvWC8rZ2ZzWnZUZWd1dlgweVJycFVocHhrNDh4bjlz?= =?utf-8?B?NkRtMXFzWmo5ZWNZWTFkMEVpNDB3YXl2Mml5MENTRnhmeEVMYTlKbkczc3Nl?= =?utf-8?B?MjR5aXpQQlpKY2Y0ZUl3RzlkSENCQ2Y3c0ZPbUNQRmg4UTYrU1lwSEMwTFdH?= =?utf-8?B?VTUrWktvRzZwMmg2VjBTWHY4UTgrRm03MVZxektZZDZJRjBRcDE1cXpvNFE3?= =?utf-8?B?N3BTaGVseHNGYkJsMUZOaExBV0JCUzVvMnFuM2lydDBMaFA5MWR1cFZRdmd1?= =?utf-8?B?ejJtY3RMekdwa1ZVemFkc1ZNV00vWEhqZmdVZjl6TlRQVXhoTWQwajF6ZzNN?= =?utf-8?B?TWs5Y3R5UHlCS0tFOEpMUlNNVjg2aDlrcjFmc0QxS0J1VTlBekFUNlFoOWxn?= =?utf-8?B?cHlwMGJ3TEdMZnZJdkxYWlNaTjhJTlNqcjRyaHRuRUV1TnZWRDJ1cUx0TTM3?= =?utf-8?B?WFlzbmdVaDNXUzlzb25keTlwd25Ea1EySHgrckE4U2tIZm5jeUhwVFZmTzZE?= =?utf-8?B?Q3JGcXhZSDNTSW9lcGxpVUpHVXFFd1ZpR3ljL1ZzUWRxaytleG9YWHRpRytO?= =?utf-8?B?eGYyZjAvdGZIWHM2dzVmT1JJYnJVMGhqZWNMdGRrYlJlU2V1UDI4Y1lPMmZo?= =?utf-8?B?MkdNNlNWcnlkY2ovNkQ0UUZUenA1S2IvUmUyY3kzZkVMd0FxTXBpYWxLbGgv?= =?utf-8?B?L0l6b3pFMTN2cUdscVQzMkYyMEwya2l0ZkNSZ2ZhQ0VqY21qSEorQzR2OTVE?= =?utf-8?B?bVJMMW43OW1pL3hSL2lsVGVvc1FoMGQzQWVBOXk0NE9PTkFjVTU3Z3kra2VW?= =?utf-8?B?WkJrR1dLSE40NHB2NllVNVNvQTdsM2UxZVlMTjI3SGh3bmtCcmROUEdzcUxn?= =?utf-8?Q?2OECoXR/?= MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0802MB2430 Original-Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT059.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: ecdf156e-c554-4640-aa6d-08d8c82ba4ef X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: L061KyjarlyBxpiEc3GY/abvDKAXc4fs98+/BaShiBOR4pDF22Mn/tdBfdA+Y0/SjNclKl0HGMfHH7ltvs5ptuxwzByYZKPA9QiSxrvLcjg2JmbCMlctEtz4tQIxb8W/suugdFeBBxbDlAQtecGW5DDrvWxcdKCdQIqMIAwz7RzQVWGq40C7oKiFGKoDpeVCIl+XqDpGlG/BV5/aAsd5J0u7zJjnjdB/9r+aX2cD7N2NQGdfN0GWKw1gxvaU/ChMQephQ7xlcS4oK3IoD3SbBAbWFEKGie/KuFAOT4Z5bGfEwE+VBKtJ+a5emK5I63MZaRsmXC/ok21hxg3UXf4AojYJ/cSYv+tW/5tlX/wjES/wC3nDN2YMZsVx4RLJyx9njAHIXvvYd+48mnPfeKPNCi/oay59e+P8NCRfg2KrkbvEWsocgg45Q5NFAKx84DfcP5JfDYA5FZUBQ2Og7pt8qexk44F77xV11HJfw4mh5KBWylhYV/GJydG4oHZXNuTZgnBRIDfUELnCtwZbO7N2DpvhPziEFGSq0GNkXKofi8f3gLSNbc0xPPvvbXPejBBWkhCK1+z04bXJjFnTB6S8FryKVV/fE16JdGw6cmn8SknzBUaiUc+OAGtrzNc/Jc6pG9MZE2WI0d7qqGxF4qohLwXT1+ARv2B+OE9XMTP39JRYVjPaU06WecAPObp+IAoiLVFBQk+mRa0yZ7Hsrg/gVecg+loHoYjvFXSJAB12qU8= X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(4636009)(346002)(39860400002)(396003)(136003)(376002)(46966006)(36840700001)(9686003)(110136005)(356005)(81166007)(82310400003)(336012)(54906003)(26005)(2906002)(70206006)(53546011)(8676002)(33656002)(36860700001)(4326008)(52536014)(7696005)(966005)(82740400003)(107886003)(70586007)(6506007)(5660300002)(83380400001)(186003)(55016002)(86362001)(47076005)(478600001)(8936002)(316002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Feb 2021 10:08:36.4708 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 80e7fa3e-9f5a-4d8e-5861-08d8c82babd3 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT059.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0802MB2473 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210203_050858_218797_E33A2045 X-CRM114-Status: GOOD ( 22.01 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , Catalin Marinas , Nick Desaulniers , "linux-kernel@vger.kernel.org" , clang-built-linux , Will Deacon , Linux ARM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org > -----Original Message----- > From: Arnd Bergmann > Sent: 02 February 2021 20:44 > To: Nathan Chancellor > Cc: Catalin Marinas ; Will Deacon > ; Linux ARM ; linux- > kernel@vger.kernel.org; Nick Desaulniers ; > clang-built-linux ; Arnd Bergmann > ; Peter Smith > Subject: Re: [PATCH] arm64: Make CPU_BIG_ENDIAN depend on !LD_IS_LLD > > On Tue, Feb 2, 2021 at 8:51 PM Nathan Chancellor > wrote: > > On Tue, Feb 02, 2021 at 09:04:34AM +0100, Arnd Bergmann wrote: > > > On Tue, Feb 2, 2021 at 3:25 AM Nathan Chancellor > wrote: > > > > > > > > Similar to commit 28187dc8ebd9 ("ARM: 9025/1: Kconfig: > > > > CPU_BIG_ENDIAN depends on !LD_IS_LLD"), ld.lld does not support > > > > aarch64 big endian, leading to the following build error when > > > > CONFIG_CPU_BIG_ENDIAN is > > > > selected: > > > > > > > > ld.lld: error: unknown emulation: aarch64linuxb > > > > > > While this is the original error message I reported, I think it > > > would be better to explain that lld actually does support linking > > > big-endian kernels but they don't boot, for unknown reasons. > > > > That statement seems to contradict what Peter Smith says: > > > > https://github.com/ClangBuiltLinux/linux/issues/1288#issuecomment-7706 > > 93582 > > > > https://reviews.llvm.org/D58655#1410282 > > Right, adding Peter to Cc for clarification. Peter, what I can tell from > experiments is that lld behaves just you describe it should, and (aside from > the command like flag handling) like ld.bfd, so I'm not sure if there are any > known deficiencies or just minor bugs when dealing with the kernel. > If an emulation (-m) is present then current LLD maps all known Arm and AArch emulations to little endian https://github.com/llvm/llvm-project/blob/main/lld/ELF/Driver.cpp#L147 In this case we'll get an error message with a big-endian object. ld.lld: error: be.o is incompatible with aarch64linux If there are no emulations present then LLD will auto-detect big-endian from the first object file. https://github.com/llvm/llvm-project/blob/main/lld/ELF/Driver.cpp#L1467 This will switch the generic LLD write functions to write big-endian. This will mean that any write to instructions will need to use explicit write32le and any data relocations will need to use write32/write64 as appropriate and not use the explicit le versions. The relocations for instructions look to be using explicit le writes as we'd want them to. I've spotted at least one case of using write64le for what looks like data https://github.com/llvm/llvm-project/blob/main/lld/ELF/Arch/AArch64.cpp#L198 I've not know anyone try LLD on big-endian before so there are no known deficiencies. I expect that without an active search and tests there will be some problems. I think every write will need looking at, if it is to instructions it needs to explicitly use le, if to data (that could be either little or big endian) it must not force little endian. Peter > FWIW, I have now built a big-endian musl C library and a helloworld binary, > which I linked with ld.lld and successfully tested using qemu-aarch64_be- > static > > Arnd > > > > I can send a patch to address the build error and mark big-endian as > > > "depends on !LD_IS_LLD || COMPILE_TEST" to reflect that and help > > > with randconfig testing. > > > > I have no strong opinion on handling this though. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel