Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp240445pxf; Wed, 10 Mar 2021 05:26:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJyp2p5+TrbbspLzRLS/dv7ZcD/WYvSvtKGdbJRGktks4Rq0AP9BSDceCiEuJ/fHNAv04gFt X-Received: by 2002:a17:906:2b9a:: with SMTP id m26mr3557039ejg.526.1615382793582; Wed, 10 Mar 2021 05:26:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615382793; cv=none; d=google.com; s=arc-20160816; b=ma9Ydi70bAUgX+9L8lodNW/a/4Io+lJSF7BszdAQQthfsHkq3Yq/fgNByZcqHeYA2d +8THxxFVXBIAn9HKPVhRjKP50cBCxLiLr3NFqddIxtP8p6kt2wdA2TAG+3WEPpudPHd5 /3REf90zdvHDwOjohQqXJwW2qTzNgBEOCDX1ew9J97BkQaKFwjWaFa7mNkCzfnJ2NlPl dbUZyhn46RJtpXPfU8nKW/qUSC0wVTJ8Ml3jruGzTMqjZw/UGqymTxwiXrB7LSPyeaNR Prgr5PXJbDrVCxQBFA+1JO2nd928DUtu5E5PFmHG18DI+Py+SpVA6OoQND3BDvXGEDsc gGuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=gLEdlgtXanoG6qyIu8SoMhgqv/P36XRzDpFu2IjC95s=; b=n30siZaJJsGVLz1Z3jpH6o68zuXVvdmAq4tvlXlQPb/ERi9FdE8fI8tGmbaot1QBFm IsLdm4lijQDbTR9Is1D2mKzElK047QY4q4tTq3MK+lNPyT3SELuLzDumku0+1lYzFsCC LopM2Nt7/gYBTDUFw6Ey0EnX52g4FAoTnNDuP0bOMJncmGPmoCbe+iR4NFK5I28CRYOM rPXsfRv8gKzW1WFZfPOICRvs0I3q0ZrqID74iaBMnFFJDL8B2Yt/hR1u5UFomVygt/Fw vxVJtl8+maQgZXmrLNN1VgyQ+1xkEcMCKQwvFgNCpEdbow+8gZlrkaThqbXCnD2aPlT3 vrpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TxOL+kHp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w17si1848758ejk.520.2021.03.10.05.26.09; Wed, 10 Mar 2021 05:26:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TxOL+kHp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233168AbhCJNZB (ORCPT + 99 others); Wed, 10 Mar 2021 08:25:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:45530 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232801AbhCJNYU (ORCPT ); Wed, 10 Mar 2021 08:24:20 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 35CF364FDC; Wed, 10 Mar 2021 13:24:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615382659; bh=MGAbaYS2VLHF+41cYp6gSoNytNrnYuD2FCGYbIVS7Ag=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TxOL+kHpsr7ezRCABrZye0l6p5yNd4PtHr2ZqJfwb3yTvIhk3xEBios/jKl/JxdPD ypRY9VEZf7jsr7Hl2prlF3gujfioqJrWnujVlsKkYu+Vf7wN6k86WLORHY52q3oEaS Hklz46tbUH5TP/bDHY+yXbZ7cfGmDDu9kL9NLG8Y= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Nathan Chancellor , Nick Desaulniers , Will Deacon , Sudip Mukherjee Subject: [PATCH 5.11 14/36] arm64: Make CPU_BIG_ENDIAN depend on ld.bfd or ld.lld 13.0.0+ Date: Wed, 10 Mar 2021 14:23:27 +0100 Message-Id: <20210310132320.967051914@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210310132320.510840709@linuxfoundation.org> References: <20210310132320.510840709@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman From: Nathan Chancellor commit e9c6deee00e9197e75cd6aa0d265d3d45bd7cc28 upstream Similar to commit 28187dc8ebd9 ("ARM: 9025/1: Kconfig: CPU_BIG_ENDIAN depends on !LD_IS_LLD"), ld.lld prior to 13.0.0 does not properly support aarch64 big endian, leading to the following build error when CONFIG_CPU_BIG_ENDIAN is selected: ld.lld: error: unknown emulation: aarch64linuxb This has been resolved in LLVM 13. To avoid errors like this, only allow CONFIG_CPU_BIG_ENDIAN to be selected if using ld.bfd or ld.lld 13.0.0 and newer. While we are here, the indentation of this symbol used spaces since its introduction in commit a872013d6d03 ("arm64: kconfig: allow CPU_BIG_ENDIAN to be selected"). Change it to tabs to be consistent with kernel coding style. Link: https://github.com/ClangBuiltLinux/linux/issues/380 Link: https://github.com/ClangBuiltLinux/linux/issues/1288 Link: https://github.com/llvm/llvm-project/commit/7605a9a009b5fa3bdac07e3131c8d82f6d08feb7 Link: https://github.com/llvm/llvm-project/commit/eea34aae2e74e9b6fbdd5b95f479bc7f397bf387 Reported-by: Arnd Bergmann Signed-off-by: Nathan Chancellor Reviewed-by: Nick Desaulniers Link: https://lore.kernel.org/r/20210209005719.803608-1-nathan@kernel.org Signed-off-by: Will Deacon Signed-off-by: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- arch/arm64/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -952,8 +952,9 @@ choice that is selected here. config CPU_BIG_ENDIAN - bool "Build big-endian kernel" - help + bool "Build big-endian kernel" + depends on !LD_IS_LLD || LLD_VERSION >= 130000 + help Say Y if you plan on running a kernel with a big-endian userspace. config CPU_LITTLE_ENDIAN