Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp633455pxp; Fri, 11 Mar 2022 11:09:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJyUVykG9tXyEf2Mt7SAx2h24iMBU01uxes9/RwkRvElF7HkSbZV2OMsDxifjlR+TdTX7yVX X-Received: by 2002:a17:907:9613:b0:6db:56bf:9d5a with SMTP id gb19-20020a170907961300b006db56bf9d5amr9450607ejc.380.1647025786349; Fri, 11 Mar 2022 11:09:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647025786; cv=none; d=google.com; s=arc-20160816; b=Hc/QlQt63aL4ewaWxCeYSyTngwGTyUKxM8ptWC68Ce4nBp7NTjQsPooOSPyLdLZ2vS BKYdaJVYA6xa+KOVUtsTPwAZRax9Sz11n5MucfHWkneZcDhkYHNk/fMfFPPZv1Oe15o2 vPV+IBIe7PVpjinljXwFoqnSq5NU5g9o/ukf3iUkKwsedv2t2y/rL7VQXqAfmSv1bl+f 8U/g5MGAcz+juIuyv6Z9HfCEHV+fqJBxl5wLqYIch4rMtw22WMP0RwkMaKt8PUMdIdyq +78q5r4+xAGLKTMTaZnpeShM29XPn3T/0904JCTUAk0oSD/H6HQ0SkKia1LCzAqEOa15 IKrQ== 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=z2Lsl4Ue5TU33EhZoynhykiz7fA3J/nJvFQteCMUtbg=; b=e/H+Ii04zZD1ua6UugDo3IsRYHrE33ikcRjr26gnrbvL7gdtl5QZ0g6/6cFCVRz+o3 lQ5BNo33A2DoGne3VMvzIZxvHC348YnNw3a4m1Bm5Bxy72CWbAeMkWr43iBCEVmqOfTk eJiIoI0qEC82g1zsmXEfTrRv5WfRnaLfUaCgH1WZsrlc4poIbdqtLWE7hzZRKTUqLduq uCDM4HY24eanL3jNlAT8rLwSQKVZbECj/uPZwmFQuu+QW5odXihdlgkXvPGKJic1FGRM mgDsA+gnaCg4b2pn4oWLU81UUG/QhrEjeXbOqMTOxOi7YJwEKrlsFn4SRPLL62/RffvV M4TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R2kvQ9em; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fy1-20020a1709069f0100b006d0ec1785dfsi5879436ejc.716.2022.03.11.11.09.19; Fri, 11 Mar 2022 11:09:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R2kvQ9em; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S242098AbiCJO04 (ORCPT + 99 others); Thu, 10 Mar 2022 09:26:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243453AbiCJOWc (ORCPT ); Thu, 10 Mar 2022 09:22:32 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 309A4C7D5D; Thu, 10 Mar 2022 06:20:51 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id AFAB3B82670; Thu, 10 Mar 2022 14:20:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF85DC36AE2; Thu, 10 Mar 2022 14:20:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1646922048; bh=rOdRjlfGIZYD+n0lj7b5O9mgjt15QtnR/meCRGGomIc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R2kvQ9em39uUuTgitlhEvRGpuKDwqmwJmXWjaDa3qdb2X/kDQ+VWRHV/RL4QrbgN0 YXMJoScWpONubm5AVaaGrTNAPqklEGVk9uvY63Jdexlla8IYppMGbX0MYbetzY14aY zNO2uwFO8tXsshxnMtsrG/TdprTcBo1feMba54OA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor , Linus Torvalds Subject: [PATCH 4.14 20/31] ARM: Do not use NOCROSSREFS directive with ld.lld Date: Thu, 10 Mar 2022 15:18:33 +0100 Message-Id: <20220310140808.125761504@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220310140807.524313448@linuxfoundation.org> References: <20220310140807.524313448@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nathan Chancellor commit 36168e387fa7d0f1fe0cd5cf76c8cea7aee714fa upstream. ld.lld does not support the NOCROSSREFS directive at the moment, which breaks the build after commit b9baf5c8c5c3 ("ARM: Spectre-BHB workaround"): ld.lld: error: ./arch/arm/kernel/vmlinux.lds:34: AT expected, but got NOCROSSREFS Support for this directive will eventually be implemented, at which point a version check can be added. To avoid breaking the build in the meantime, just define NOCROSSREFS to nothing when using ld.lld, with a link to the issue for tracking. Cc: stable@vger.kernel.org Fixes: b9baf5c8c5c3 ("ARM: Spectre-BHB workaround") Link: https://github.com/ClangBuiltLinux/linux/issues/1609 Signed-off-by: Nathan Chancellor Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- arch/arm/kernel/vmlinux-xip.lds.S | 8 ++++++++ arch/arm/kernel/vmlinux.lds.S | 8 ++++++++ 2 files changed, 16 insertions(+) --- a/arch/arm/kernel/vmlinux-xip.lds.S +++ b/arch/arm/kernel/vmlinux-xip.lds.S @@ -13,6 +13,14 @@ #include #include +/* + * ld.lld does not support NOCROSSREFS: + * https://github.com/ClangBuiltLinux/linux/issues/1609 + */ +#ifdef CONFIG_LD_IS_LLD +#define NOCROSSREFS +#endif + /* Set start/end symbol names to the LMA for the section */ #define ARM_LMA(sym, section) \ sym##_start = LOADADDR(section); \ --- a/arch/arm/kernel/vmlinux.lds.S +++ b/arch/arm/kernel/vmlinux.lds.S @@ -15,6 +15,14 @@ #include #include +/* + * ld.lld does not support NOCROSSREFS: + * https://github.com/ClangBuiltLinux/linux/issues/1609 + */ +#ifdef CONFIG_LD_IS_LLD +#define NOCROSSREFS +#endif + /* Set start/end symbol names to the LMA for the section */ #define ARM_LMA(sym, section) \ sym##_start = LOADADDR(section); \