Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp147556pxp; Fri, 11 Mar 2022 01:06:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxgop9caGjDpfTjcUubS3X5TjPmsY28LGPSznO+dvtr9A6pxr4yftuw0j0KTrkEhLAV949L X-Received: by 2002:a17:90b:3e8c:b0:1bf:4043:daa with SMTP id rj12-20020a17090b3e8c00b001bf40430daamr9669898pjb.233.1646989573999; Fri, 11 Mar 2022 01:06:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646989573; cv=none; d=google.com; s=arc-20160816; b=o53NfQlnV/Z1Chv963yYoiM6g2kZp9cbWAtdyhqp6l96OOKauQOQ334i21yTFk+jPl N65zlx8NhxL6EZLc7lS2dIt9Apz+D/w4fqjfURD2vt6IzAzcSR5uSoJzwE7xWBeZxk1r USf5UKWNCFxN2EjATkkXBN28dxglkbOqOrRb7KzfvvmquHK0KN+boKBp1W9D2G9Ruq/M uGeml55uWl1oUJNbiy0xevCKelmbRXHGBri5VzqZyo4FTA9h4C7Ob3kgphndTSInIyoi DoWKHsh+lqxg/a4KHbVKah4xVIvkCJdH9FJEBPawCcKaash55zSR6aVAgObIyYxfEryg UjTA== 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=4BX0Hg0k5Ckr7+TQN8cmMP+1fzbeZnMv2DHKbCGogAU=; b=zRj1hcjyB800q1XXpWHX7p76A6nYu8r3tsdqyHURCJ3EoZJfi/ptL8xpv7ZfGJ0KGS fUkD+/VHvb3lWKvK7Dv8ATQEJLAmWyy8ttM/CnvdfLqg2aPfcnfrfsjgd4NgGVqqhdZH kA+KTL0+1ncD1n9xkBvc2uMb0I342ngsIh2crq18DleovkO+ntn+BOX0LSeegusUt6vd WQRiyCQCsEq9WDCqHUxbcAGjVnZMkOk2FsXBQ3VvKFbXkgJjA4e7nABQmrxSlkzg9HRs 96iDcRqbW1GabwBHz6Pjrl9bK4TyGdETvcT/HFz2DJ32uVyo271ecXht5RDALCR+ImWh hWEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=POaM76sU; 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 oo4-20020a17090b1c8400b001bd6b5b192csi5478328pjb.22.2022.03.11.01.05.56; Fri, 11 Mar 2022 01:06:13 -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=POaM76sU; 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 S239231AbiCJOPg (ORCPT + 99 others); Thu, 10 Mar 2022 09:15:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243141AbiCJOO6 (ORCPT ); Thu, 10 Mar 2022 09:14:58 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3931154D04; Thu, 10 Mar 2022 06:12:04 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 5E52961BD1; Thu, 10 Mar 2022 14:12:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54FA0C340E8; Thu, 10 Mar 2022 14:12:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1646921523; bh=ZwwrUYRY5dio8pDaWYDTlGOjhbR2smNpyr8q2xrywcw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=POaM76sUmFmRgJ92Zw2eA6zvYeVzkUsIJzKIE6AN4+aT2FFdPkL/v92RXfA9KLNua WdYRYYpAmEMil7Hm+JCG5rwKGTuaK8T28GiE9bMwNVv3KwM5qfXRZ0Un02BRdE9uq+ rp2YGyCyZWl+FbJNIzvGiX4JdljmIhiyMSUeYUcM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor , Linus Torvalds Subject: [PATCH 5.16 39/53] ARM: Do not use NOCROSSREFS directive with ld.lld Date: Thu, 10 Mar 2022 15:09:44 +0100 Message-Id: <20220310140812.957337935@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220310140811.832630727@linuxfoundation.org> References: <20220310140811.832630727@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/include/asm/vmlinux.lds.h | 8 ++++++++ 1 file changed, 8 insertions(+) --- a/arch/arm/include/asm/vmlinux.lds.h +++ b/arch/arm/include/asm/vmlinux.lds.h @@ -26,6 +26,14 @@ #define ARM_MMU_DISCARD(x) x #endif +/* + * 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); \