Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4658626rwd; Tue, 23 May 2023 10:31:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6iDPPTOyfJih84mWvUkGZW0L8iGrUAoHNNcTMZZ6e1JfTYPPS5sk4nFcueSmrBeDUuzsWD X-Received: by 2002:a17:90a:8541:b0:255:75e5:b456 with SMTP id a1-20020a17090a854100b0025575e5b456mr6233142pjw.1.1684863064154; Tue, 23 May 2023 10:31:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684863064; cv=none; d=google.com; s=arc-20160816; b=h1OgodDKzTIV56AkhFrv21FIS4Hpj2olBhysxQMPXfuUQC/7NfwFwc4s7L6/E9EUzP UEeCOWY3E4WImiX7n5lm571AU2w4weK+uq7g4r4d1jucVAYkBwlpYdeqfH0z2GliFEIQ xmu2IVfbQGEhYeLGM+/Jktz36FEn1KLn88mjBrhkgKZNmJKUaofnhtcTFv0/EIzuhivi qwYWAc9K8ba6rYHl7qZ6GhCk316EBVFtPcfhSAiwu0KQn/8JulF4X8DkJEJXx1/aUQqp sCFXICEMkQjYH3Wey22uMrVLmNSzGXIUuUGIdPMdfuYtn/5jLtSt6RDJzxWIKMfhzb2V QB3Q== 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=Pt//nkBDODDyO6hNUBwO68Pr5i1g34Mx5QA7Xq2zl3M=; b=u7+cAewDzB7hx2/C/prjupihTLpYXZzbb5cUuPdEFWnpRVoH9ohQyv2eUkItWGf/er c8cZ5vurLrYKeeMTe0iYYVqtVDCDShBHyy9UD1hX86sFujdKMteQOo3BJw8VXjIy9AZS FZIREC5UY1nYmrlUp5HwTuu26QPjKE6yWzqmmwR2IGPEhIJW9JK81mLpilO48RBY28FT LuST0nHIcvSs5z7rjJiFJmDcKuMyNPzoykw5BP8J9q2oweqYaJhpcys+2dAWaL5njNOF gHX64Jj+QQ4kqNxHZyazYjF+6zYP+e1clax1YENIOLzjpH0OjqUlNJmESLdj5TUKL7Mi hwKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VroAEK5O; 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 li11-20020a17090b48cb00b0024b9e5aa258si1877260pjb.0.2023.05.23.10.30.48; Tue, 23 May 2023 10:31:04 -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=VroAEK5O; 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 S237974AbjEWRG3 (ORCPT + 99 others); Tue, 23 May 2023 13:06:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237959AbjEWRGV (ORCPT ); Tue, 23 May 2023 13:06:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 635BABF; Tue, 23 May 2023 10:06:19 -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 DEA8C6222F; Tue, 23 May 2023 17:06:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7886FC4339B; Tue, 23 May 2023 17:06:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684861578; bh=S1v3epwjKPZhhmwrrwdqziIQP7+cuuUHEgza9tY/ky4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VroAEK5OljQLhXtHf6feHA8/FP9OXYl6sjuMlhJsY8l8KPby6JgzKKo6wcnYW31kk 7699dMhJ4mj/3Sez4d4jeyXrd9ERwFEGrqRI4zLewef48JVaieRPxC68pFZq3gnrG0 QwLsevTvH5HQg2BMVx3o/K6NDABDbh/+eAmtHw4GRUCBfZkUonc6oKYSTltVEvG2ei wGp8bjpvxifPQIq+Vr3n/eYYBZuKYC77OR2xuYa91Vrd6O0cZDX3KKmKqEfPF3jLBK OXdEs3T9UefBk5W3LeStb3eKkp+/XzUWYJ/awKpJCTvSoEsiEa17E2YSrtqZ4j32yM 2VuLUKy8tPE7Q== 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, Conor Dooley Subject: [PATCH v2 2/4] riscv: vmlinux-xip.lds.S: remove .alternative section Date: Wed, 24 May 2023 00:55:00 +0800 Message-Id: <20230523165502.2592-3-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230523165502.2592-1-jszhang@kernel.org> References: <20230523165502.2592-1-jszhang@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 Reviewed-by: Conor Dooley --- arch/riscv/kernel/vmlinux-xip.lds.S | 6 ------ 1 files 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