Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp8911745rwr; Thu, 11 May 2023 07:43:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6rW+s0jsE+j41OTSyOb8RvBFj5W408gw2ZwfbgxTpzEOl4Osi+cPm82YrTSe3BG7y/iCUs X-Received: by 2002:a05:6a20:430c:b0:101:2bc4:5e1e with SMTP id h12-20020a056a20430c00b001012bc45e1emr13533893pzk.47.1683816216388; Thu, 11 May 2023 07:43:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683816216; cv=none; d=google.com; s=arc-20160816; b=aDut1sOSHb/BgZI2QsSZcFxJbJY+FetINPgi1w5esywfg+BmjUq7/i/JaOmyEM8rh4 iD/1iYo83i/sjbAS+HLXAKnhcU9lxJEcOinq9zM5VeS6zIuKNoGhcaKjC3hNY/B8XDnI KaRqQkep+6wAWaL+yXMVT63yx/uzqYKyWxSnRhLcSJxxT7k23ucYaM0Im84q1EbIxbWO tcGwL1RVNp7OQXpQE81KPfJvgY38yxcFIxcgK7AM7gAQmcSVBLH1rrelKRLJd1UijgQl iSS3S3hhgw7QWA4OMrBF3PwORqpEgiNitoTX9q3GzTTgobSv1d4lv3UgvGjQTE8l6vty FaHA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dz7XGCHjq1dzsPGGS4F6j4OR5rErWwXp5TUKHxoryWE=; b=lWV6g/bk9VXW+S8MOTBCMxIDaicX+NcDobKDjpsYW8hHQayvTN9NhhX982G9Eqo5oe LGskVCSs04I9BUNLSFYuuqCHS5wogUIlHocvJ3r4X4LQaNvbG1bqPXiK380sbJzfbg21 ylO1zvJH2j4a5treMxj2MF7OjbReYJZT+C7UloWtP7ulM3uJ4R+uVjUL/QsfYT70e7ak o75sXymdz7uvjeJF8Ia7pzjwxuNrJJx4vJQkwqRCqM16F+FWm/u/vr9RkaSLDWeMuCge cULQttMAJ6M+dYqRmc0DJOt1LDKXcH5YPUQOQgNj7WPccNtnUgjo9bp44+mto4LeZGLP yZNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DuTL2omz; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a138-20020a621a90000000b0063b8a36cbedsi7772569pfa.148.2023.05.11.07.43.23; Thu, 11 May 2023 07:43:36 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=DuTL2omz; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238272AbjEKOXu (ORCPT + 99 others); Thu, 11 May 2023 10:23:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238258AbjEKOXg (ORCPT ); Thu, 11 May 2023 10:23:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C9F7E66; Thu, 11 May 2023 07:23:24 -0700 (PDT) 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 0F86264DFE; Thu, 11 May 2023 14:23:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 991FBC433D2; Thu, 11 May 2023 14:23:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683815000; bh=RBBjQJhyNTq4SLepJRhrNnLCCMrJFLXtNe6TLcXndOU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DuTL2omz4fj1qRlJSZXZGLrBNoL39rBeuQpXk/KjnbC+dCNf4/gp6IJF22P4VJuTU 5Kur7PM3FMd7AFMbVodq9zu/bH7kktW8XkJ/+PzymDCAmEDBvrAVzrwE0/Mpf1vDE1 Q2XB19rffNaqwD2DN8kZ6kNDnulVKfEHfvS3yxAbb1XgXJ5V+R3dx3NRkVLL0mar8Z +ajhWfJ0YLRTSbzTAv/aBaYgFmApf55tt4Rj18Bw1AzC6bbl+43pkg3Jr3oihI0ArN QM1onojNiOUFyt2IN193TDX3CeEGQXKyAnG5QVCT98vT4fjeFY9pIUDhiRljGoGKi4 0MOl+1qd56rVw== From: Jisheng Zhang To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Arnd Bergmann Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Subject: [PATCH 1/4] riscv: vmlinux-xip.lds.S: remove .alternative section Date: Thu, 11 May 2023 22:12:08 +0800 Message-Id: <20230511141211.2418-2-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230511141211.2418-1-jszhang@kernel.org> References: <20230511141211.2418-1-jszhang@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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 ALTERNATIVE mechanism can't work on XIP, and this is also reflected by below Kconfig dependency: RISCV_ALTERNATIVE ... depends on !XIP_KERNEL ... So there's no .alternative section at all for XIP case, remove it. Signed-off-by: Jisheng Zhang --- arch/riscv/kernel/vmlinux-xip.lds.S | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/riscv/kernel/vmlinux-xip.lds.S b/arch/riscv/kernel/vmlinux-xip.lds.S index eab9edc3b631..50767647fbc6 100644 --- a/arch/riscv/kernel/vmlinux-xip.lds.S +++ b/arch/riscv/kernel/vmlinux-xip.lds.S @@ -98,12 +98,6 @@ SECTIONS __soc_builtin_dtb_table_end = .; } - . = ALIGN(8); - .alternative : { - __alt_start = .; - *(.alternative) - __alt_end = .; - } __init_end = .; . = ALIGN(16); -- 2.40.1