Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp85007pxp; Thu, 10 Mar 2022 23:14:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXcfxMgVI25l87NzvT7NORlvyXRHJXMiIA/ZJlHf17pzJY5wDa/gyJ6y3OAlxvYQJ/cHvX X-Received: by 2002:a17:90a:1d05:b0:1bf:6a85:fbf5 with SMTP id c5-20020a17090a1d0500b001bf6a85fbf5mr9214709pjd.205.1646982885161; Thu, 10 Mar 2022 23:14:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646982885; cv=none; d=google.com; s=arc-20160816; b=p+4VuTP6ZVhlBiA/TJgk1kz/HgpFsfrmIIQrbLhOCLcO2Sqm1Izmv2cKWDgb2Zc6Nj M2ugzWM6uTMjaik9El7TzQjByQh4UlA0teTn5pzvb3XOZR+J54sCEMwNYMZ2gfGT2P9G tAR3dT62Ok5dsAiDXdLtEyf33+K+pboGi7895V/56G/HdOtLDYjDtib1M05AXReeyeMC HImx7EeuC4na6x07M11dgyHJsipttZ7r6vqWzTAJOwUIPTatZU3u86Fi+HpIDCo0IRV3 ZvuaYavwdazJnrcVCGetA23YX7L7vF8Y4LGXFQKMnzNf0dKMmeXLzsuqjgXDTIwJTXxL pqlg== 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=Nu18d8BO/4JrKM+ZowdOoL+cuY7hLEYsIQ4Pdy0CGW0=; b=Zl29iP2BasodwhSirnaoEMi06u2yFVGSrureQPItXOile9e4/ggwDiDxTUpeMJmH5o TnVL2/l0kA8i23/BUWbyZd6IrpjW/Ijjql4MupbKAFSdpdni0YNdLvrr+x81aX3Y7dj/ JlcLg75HhAmtRCFuzUgWxsATvbmkqXbxiUB5hii1fNElU86ojyPWtJuRM6dAKNJTVneN zvwfLTscmw3rArxMQSYFD+CGEkRvRQWneidCfrWkjmF0AKVeeVGcPE6gKVBpjjyKIBKv Pi+/ypBzNgjtWHnUBJyMylteQrF6E09aecMU0xFZA3iEDPp3vH7vSJIeMVwkaKEGQhe7 8tLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vw8EAkuk; 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 x42-20020a056a0018aa00b004f784be913bsi2707106pfh.22.2022.03.10.23.14.30; Thu, 10 Mar 2022 23:14:45 -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=vw8EAkuk; 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 S243698AbiCJOY5 (ORCPT + 99 others); Thu, 10 Mar 2022 09:24:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244250AbiCJOTE (ORCPT ); Thu, 10 Mar 2022 09:19:04 -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 E1D701704C0; Thu, 10 Mar 2022 06:15: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 AE99BB8267B; Thu, 10 Mar 2022 14:15:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18E7FC340E8; Thu, 10 Mar 2022 14:15:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1646921745; bh=DzqVsiVDsID/SYy4BDD6YW+JEMYUAwX1RdJngJSgkrg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vw8EAkukNP7W1k477R9qRdwOJtICzzwIgaEXbP1rTpw4aHeN+6EvrL7HQkwNSW/KF 6JdCW+KRUyL2+WlmD792o19i/2q30pTqMboOo0AWWP0R1X7cx79rmxCaSZ+anvQ595 QccIM6sI+b9tNiywf4v+skSZ9KeUwcg4HUgpIPX4= 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.9 26/38] ARM: Do not use NOCROSSREFS directive with ld.lld Date: Thu, 10 Mar 2022 15:13:39 +0100 Message-Id: <20220310140808.900651068@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220310140808.136149678@linuxfoundation.org> References: <20220310140808.136149678@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 @@ -12,6 +12,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 @@ -14,6 +14,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); \