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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 12DACC4332F for ; Fri, 16 Dec 2022 23:11:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc: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=elm93DaVaxicV1sLCrZEQrM8SW2d+6ZaAD1ouVilQZY=; b=mw8DqslN7eTDTw NyElCi81As/HEyQOzMCeWWtjblz7wSJ2C7x/cvDIpx7t2+zZofd9XEy07Z1pA2RpRZ7ISBgKR1k0H 7PdDLs23wYzG4vAimDjFhDIi2asnAW4H25h2TtaH60kU9OCcCxH5E5UcPTBzRBJRPuBgSDh6L+gbR GT0ByCtAdW34vEyqo3tZBcyAm5H+vwexDIcN0y2/ixQlbiwQwotP3tmtIGnhICgJ6P/MCsEDiZra0 XWO/9ZHHtdO2UH1LFmeK6+Qq/5BsrokAoUF8jKB/O6AMQ2G+cWi5QrfGZ6rjmvuSoTYiXt33qKFq8 IhqFLTa1R9p5brLuDsAQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p6Jql-002ZpC-I4; Fri, 16 Dec 2022 23:10:44 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p6Jqe-002ZlP-TU for linux-arm-kernel@lists.infradead.org; Fri, 16 Dec 2022 23:10:38 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9E1026226C; Fri, 16 Dec 2022 23:10:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD19CC433F0; Fri, 16 Dec 2022 23:10:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671232234; bh=zgYWqAaqj6eaq/rWdydgspOTjJ0i61y5A/KYsEJprcA=; h=Date:From:To:List-Id:Cc:Subject:References:In-Reply-To:From; b=hiD4a1XBwZB417IY24mhN+JX31bSQx39n7Zdc60keJ6zlZntYnNedcnt4j4UVIwCD 7V//GMK/qxPysAynLs8vu3MoopnuCa0yCumIUA2Zt+mXNdhtj4mxeBs2walUKWw0Oo 8hZAh1X1Ssxcr39mfZfCi7RgZ95VzGWHK7Up4o+qhcWGo716iz4Q5AcC5JDqRQTIUI N4r3/t63/pijzKY10eSJhrfMAqieWutRlh6grH90NgTzMcWP9BGaHqtuI+wIYR/TCA prMVtl3s4DsTdfZJ9wMW3GVXzJ4SAm9DVDIs5hPARQpfuNc1u7mvpC+5LYbKUW2P/0 7OTIQZFAk/jzw== Date: Fri, 16 Dec 2022 16:10:32 -0700 From: Nathan Chancellor To: Arnd Bergmann Cc: Russell King , Nick Desaulniers , soc@kernel.org, Arnd Bergmann , Tom Rix , Linus Walleij , "Russell King (Oracle)" , Ard Biesheuvel , Geert Uytterhoeven , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH] ARM: disallow pre-ARMv5 builds with ld.lld Message-ID: References: <20221215162635.3750763-1-arnd@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20221215162635.3750763-1-arnd@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221216_151037_098105_96B8B1DD X-CRM114-Status: GOOD ( 17.99 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 Thu, Dec 15, 2022 at 05:26:20PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > lld cannot build for ARMv4/v4T targets because it inserts 'blx' instructions > that are unsupported there: > > ld.lld: warning: lld uses blx instruction, no object with architecture supporting feature detected > > Add a Kconfig time dependency to prevent those targets from being > selected in randconfig builds. > > Link: https://github.com/llvm/llvm-project/issues/50764 > Link: https://github.com/ClangBuiltLinux/linux/issues/964 > Signed-off-by: Arnd Bergmann Reviewed-by: Nathan Chancellor > --- > arch/arm/Kconfig | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index 4a8fff7f9be0..d995054ab602 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -344,12 +344,14 @@ comment "CPU Core family selection" > config ARCH_MULTI_V4 > bool "ARMv4 based platforms (FA526, StrongARM)" > depends on !ARCH_MULTI_V6_V7 > + depends on !LD_IS_LLD > select ARCH_MULTI_V4_V5 > select CPU_FA526 if !(CPU_SA110 || CPU_SA1100) > > config ARCH_MULTI_V4T > bool "ARMv4T based platforms (ARM720T, ARM920T, ...)" > depends on !ARCH_MULTI_V6_V7 > + depends on !LD_IS_LLD > select ARCH_MULTI_V4_V5 > select CPU_ARM920T if !(CPU_ARM7TDMI || CPU_ARM720T || \ > CPU_ARM740T || CPU_ARM9TDMI || CPU_ARM922T || \ > -- > 2.35.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel