From patchwork Thu Mar 11 00:54:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Chancellor X-Patchwork-Id: 12130013 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=-22.2 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,USER_AGENT_GIT 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 3467FC433DB for ; Thu, 11 Mar 2021 00:56:21 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 8F8E564FA1 for ; Thu, 11 Mar 2021 00:56:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8F8E564FA1 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=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=AhFZQKJuxF3H92wYm4HDbUBT9V3ue1YupZPsnCF/078=; b=ghtgWCEgq+54QS5312DiA/A/t1 T//5zlLg5+2z4iypGWGimHLQnRsJiBOxxKv+vVxiuzr3GVTaCS6zoPO2rXHusbyo+aXonnI88waa+ OjYAHK8ftOz0Z0d+GeLDvWWWbqwCKnn2+JlHjt4fuHW4ywnyVvUoZ0q/eXVCpKov9DbG/571Ordpy OH3OFjvXXpCL6UVTvgk9A60lLzFd6XTFblJOifeuoGIeqNF7TyGXTOodAcQE7IUZZDwpzVCORHumD 2NrD2aaJTShYAyXTh5JNvU+QrH6xdlV3z9SreLy1NHyz3FWzq1rQfoAW8abF5CRvWyA5nqaIo48hP QX+J58ug==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lK9bO-0088Jr-0L; Thu, 11 Mar 2021 00:54:58 +0000 Received: from mail.kernel.org ([198.145.29.99]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lK9bF-0088IK-FH for linux-arm-kernel@lists.infradead.org; Thu, 11 Mar 2021 00:54:54 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2BB6D64FBA; Thu, 11 Mar 2021 00:54:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615424087; bh=xcryLZ0Gb5mYAc5JfRylLi7w7iJuxtG63AI/SwJzEbg=; h=From:To:Cc:Subject:Date:From; b=qOa3LL3/If4YhmTZfWnjKjVL/SAQJTmwrb9UHJqsUsuXJbGv6StV29YBU5xNdwuIN VYYl4Zc3NUbck+33xFf7bARR9duUh3t+bL/Svi8RY9h48ti9Q+RnZqR6xK0jQuKMSy pZnzGYZelkKvy3sykn9Y5HV+hvjkllaHCAiiYhFT1v1Tw43Is99pBlR4U6xr90QiVD U622du50w1r3QMuzCvsWLH0loSuYfSBCafhecNuluSF8svLmJ1NuJRcGVwxmOSifQ+ uzO4S8GKmGEwdvNak6TQsY3v3hhV5aaKqlXzOFjukp4UdU+z3ZClQsGLeJ8srRB39w BNOWaLgL3/prw== From: Nathan Chancellor To: Russell King , Nick Desaulniers , Arnd Bergmann Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Nathan Chancellor Subject: [PATCH] ARM: Make UNWINDER_ARM depend on ld.bfd or ld.lld 11.0.0+ Date: Wed, 10 Mar 2021 17:54:18 -0700 Message-Id: <20210311005418.2207250-1-nathan@kernel.org> X-Mailer: git-send-email 2.31.0.rc1 MIME-Version: 1.0 X-Patchwork-Bot: notify X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210311_005449_831453_AC076BA1 X-CRM114-Status: GOOD ( 10.21 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org When linking aspeed_g5_defconfig with ld.lld 10.0.1, the following error occurs: ld.lld: error: .tmp_vmlinux.kallsyms1:(.ARM.exidx+0x34D98): relocation R_ARM_PREL31 out of range: 2135538592 is not in [-1073741824, 1073741823] This was resolved in ld.lld 11.0.0 but the minimum supported version of ld.lld for the kernel is 10.0.1. Prevent CONFIG_UNWINDER_ARM from being selected in this case so that the problematic sections cannot be created. Link: https://github.com/ClangBuiltLinux/linux/issues/732 Link: https://github.com/llvm/llvm-project/commit/48aebfc908ba7b9372aaa478a9c200789491096e Suggested-by: Nick Desaulniers Signed-off-by: Nathan Chancellor Reviewed-by: Nick Desaulniers --- arch/arm/Kconfig.debug | 2 ++ 1 file changed, 2 insertions(+) base-commit: a38fd8748464831584a19438cbb3082b5a2dab15 diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 9e0b5e7f12af..64c1f8a46ab5 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug @@ -66,6 +66,8 @@ config UNWINDER_FRAME_POINTER config UNWINDER_ARM bool "ARM EABI stack unwinder" depends on AEABI && !FUNCTION_GRAPH_TRACER + # https://github.com/ClangBuiltLinux/linux/issues/732 + depends on !LD_IS_LLD || LLD_VERSION >= 110000 select ARM_UNWIND help This option enables stack unwinding support in the kernel