Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp240419pxf; Wed, 10 Mar 2021 05:26:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJye3eLLbW8EadYMVCFf4gYRpEoZXENALj8dJrC/yyjd9tboIxHR3xizcNQAQpfeOj9on6Sp X-Received: by 2002:a17:906:3105:: with SMTP id 5mr3702331ejx.168.1615382791931; Wed, 10 Mar 2021 05:26:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615382791; cv=none; d=google.com; s=arc-20160816; b=o+zpud7ihCOcuW26kI5C/CQ0s5fMUbRCKW63JtXr0lS1DVRBDkvYJz2HhYE+7msD5I 3tR2hlPy8ohPsXG0F3x9/KmBS9A1/1i4qhxlHckqSixx9Kj8f89E315JEne2tQbPeEHc 2TvI/LczltEDOQsjzE10gP0fP9+qQOGNxveKTbv1w5RzuK0h8mwAYeBuZTkpMZBW2Jjw ZfmFyBavcYpIhhCwCEUQe6QJcd8YaKFPLGPZsBWGZqrdaXjOXRNDV6qxaVF2aX+j9Cpf JFyd0Xk1JkUWcWq9foaFlQhpp9aOOA8fhMRAlXwmkRGByNfL2TkO/9etutoikZI3IuFg CVew== 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=6qiUsKP3RDpotcfLtzAuBNqEXnnLPg/EoaF2uGQ+pxo=; b=RJuFucB7y/yPa6mRleEcXbOvUvU3KzMEpKeh5DL90Kn2fCbr49xcOxLmgFjvXuSiTO dZejhc3J3/IFg/Qh3/GJz/Xw17PttBeXUF6i1jC2CA1t38DNsD3P3PHkhP/UkNxtE8/p gmfLyJi4wogcIvnC7gLjg22fznJ+3ex5MQ7GNXDSu0X5c22sF+OJgtLu5h2yw2ijcMIV UM8cloNV0In/6BiH4l16/68MytwzIk9DEc8OdK3o4LGmfdUkBGukfrsjAEbZXaB728+0 EXswT9Q+6Q5nM5BX164HMHr948wRmi6m7yDfifqcPxO1P4NBEGRYJSu2jfLwgUeyHgtP eqmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iOr7cSWg; 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 17si11780441ejv.562.2021.03.10.05.26.08; Wed, 10 Mar 2021 05:26:31 -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=iOr7cSWg; 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 S233135AbhCJNY5 (ORCPT + 99 others); Wed, 10 Mar 2021 08:24:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:45474 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232785AbhCJNYQ (ORCPT ); Wed, 10 Mar 2021 08:24:16 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 12CF164FD7; Wed, 10 Mar 2021 13:24:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615382656; bh=Nu4xHyai9ZLyH0xUkBWWw5RYeR+BlpaAgC1kr36Je0Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iOr7cSWg9oNs9TMD/5QAdr5Grm2axeNbLYMkONSTw7l+WCP1bbNX1iORMrF+KjZ2l 9kxj5vBI3LsFWI3NNLCCnWvY6Fb437PfN+JM2AWqI4Z+002CaEy354JbMZVTZumRR+ 0J68hnRXpw75fLqBtlfgZurHlNu/4gqaVyjfFP3A= 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.10 05/49] arm64: Make CPU_BIG_ENDIAN depend on ld.bfd or ld.lld 13.0.0+ Date: Wed, 10 Mar 2021 14:23:16 +0100 Message-Id: <20210310132322.127281108@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210310132321.948258062@linuxfoundation.org> References: <20210310132321.948258062@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 @@ -950,8 +950,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