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=-19.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 8B153C433E0 for ; Sun, 7 Feb 2021 02:31:56 +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 3F12B64D9E for ; Sun, 7 Feb 2021 02:31:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3F12B64D9E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org 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:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=cZ5tpKBI61OqMXexsg1X0dSyUaJKQDINqsBswO5e4Ec=; b=TQFQ20dwaZPUYfmpSQBI7zLqs RKPB7CjydRlX2bEAMtxjbAYOSMCpp0wxVWtrKvmi0e5RsYtqIoPnp3EjxFMqlscd+4KD+k/bQZ0VK eKX3M4GDuvZdYFdVBNWje7qcIcTat9+5gplZdELKI4IPUk3lmTgJ8ZBNkYtI6raAOq7SC/vJku46J pIxrXNJSAin6FrtttbLaxVUd/9iL3sFineQum5HCB7FYsk+XdTpzz5QWq1QIxD8qDXdEwGNe9Iofh whSYEmfU58y/sNaQ9dQZvWj2oWu8xBdDIw1DLthmQLz2UMFQGnHeEk49zg351mo5rx9JoQH7PPXIA 6whhGlidg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l8ZqZ-00073M-It; Sun, 07 Feb 2021 02:30:47 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l8ZqX-00072r-25 for linux-arm-kernel@lists.infradead.org; Sun, 07 Feb 2021 02:30:46 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6CF4264E8C; Sun, 7 Feb 2021 02:30:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612665043; bh=IzYeZSry0qXTzjT2UN+6iWEQJbFKYdFQv0CID8sfJP8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KTo8rm0rUEs4PkiNtiEDrp7e46mzt4rKMvVYBTMAfI+KHFCpg90Fj/RQrVNKtj743 TCUcYOr8yRlgrNKohl7iqcYa+DiY1gXJMPouSJIOJdIUEyo32AFwr+LOYoDInP1FM+ 99EJ6C3uSvKFUBVqhZZbL3pWEAHoXhoR8PDlDU3aFwBJxcV2nNCxviifi3Y807KzVy O0BwonNqz1YptUN5zsS33kKY842JsIoU/UTcGtNEOet/crs27jBowMoHdI9WduGmEu 9eGi763RN0w/2LUoNqCg9BUQ852ba66E/uNotTKAKUHk/JXIEmZSUDNotYZGQ5O3OX tWLCFCL9MNMCw== Date: Sat, 6 Feb 2021 19:30:41 -0700 From: Nathan Chancellor To: Catalin Marinas , Will Deacon Subject: Re: [PATCH] arm64: Make CPU_BIG_ENDIAN depend on !LD_IS_LLD Message-ID: <20210207023041.GA655027@ubuntu-m3-large-x86> References: <20210202022441.1451389-1-nathan@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210202022441.1451389-1-nathan@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210206_213045_217518_6DE2C650 X-CRM114-Status: GOOD ( 23.89 ) 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: linux-arm-kernel@lists.infradead.org, clang-built-linux@googlegroups.com, Nick Desaulniers , linux-kernel@vger.kernel.org, Arnd Bergmann 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 On Mon, Feb 01, 2021 at 07:24:42PM -0700, 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 > > There are not currently plans to implement big endian support for > aarch64 in ld.lld but if it should be supported in the future, this > symbol can depend on the version that first supports it. In the > meantime, prevent this symbol from being selected to avoid these type > of build errors. > > 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 > Reported-by: Arnd Bergmann > Signed-off-by: Nathan Chancellor Fangrui has pushed proper aarch64linuxb and elf64-bigaarch64 for ld.lld: https://reviews.llvm.org/D96211 https://reviews.llvm.org/D96188 This patch is needed for OUTPUT_FORMAT in the vDSO to work properly: https://reviews.llvm.org/D96214 Once these are all merged into LLVM 13, I will update this to be: depends on !LD_IS_LLD || LLD_VERSION >= 130000 Cheers, Nathan > --- > arch/arm64/Kconfig | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > index f39568b28ec1..5ddf9fe7b4ee 100644 > --- 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 > + help > Say Y if you plan on running a kernel with a big-endian userspace. > > config CPU_LITTLE_ENDIAN > > base-commit: 88bb507a74ea7d75fa49edd421eaa710a7d80598 > -- > 2.30.0 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel