Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp1296215rdb; Mon, 4 Sep 2023 08:58:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGs8THIqiD6UuKOa0bpuWJ1+yn2avPPI/IG+5+SsgLUcMortKLjh4v2DbnyDQndrQmNUYyJ X-Received: by 2002:a17:902:f803:b0:1bb:ee1b:3cdf with SMTP id ix3-20020a170902f80300b001bbee1b3cdfmr7500462plb.67.1693843114782; Mon, 04 Sep 2023 08:58:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693843114; cv=none; d=google.com; s=arc-20160816; b=jEM+D3lxcdDwE+ajI2xND9uc8GnJJd7yNTnn5BBh2kQ74hFBpcsxm2h7JIbWRgsvsq 3THtWVY3k4d7gBEV5QE9sc3yptdXYq5dLUexYENAP0z6FlSbMsLwVZn+0oyEA2wyHGT8 FKs+aLAGtIVwHpseTDm1gtY2YIOQ2rW0cXGy/3RvzONfT254cpAjsiK0pvhaxK8/g/LE 97vyY+PfMD33l5btLilqbYzfHH6K1PGMmRVX9emjMEu4u97cLNHFU2LFhva+HnSYZwfT U3aMBLF/58IXzi4HDS6T7QYl5gvZkImKjvZhrhHAo0dANN6GWPD8x0GZ1KNHWCZsesU9 NzaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=AWnspGPjcikxddqOwoHtnPRiGy2whjfHwTcvfM8iSMw=; fh=8fUEeuIqWLj2K4FhXFeK26uNNAH+yUpG0EOj+Zq5eis=; b=KH1S/4rzjUIKgqg+PkTzn09+uzFYcNsTsUH7O5kWPNjBO3v5jx0GnAlKThgejKRSh/ Aee1MLWjvrhTbs2rOttgXgevXBOlcic2VZbaOM4HINGnOGzm1wt+rqiSQtwTbQn5Atax 5Vo25X2LdCFLoOd0n9kdIDW5AmSzB4tVcJIY+7/UFX9qgOMAif+lhGxXAYPyK60J4qgB qft1QqIhQ7MlaIiebzadG6eyNRjoDnXW495QwnDBnZ0B94gfqhJV6AMNIQ5G+UQ/TjwM Isq7H1BOBZ1amA4AoY8NNN1QE4rGSijipPKOegZ8G6oqTRPHtOBSOz+5evrNZ7K2IhnG p/Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rzISwFr2; 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 km7-20020a17090327c700b001c0f0103e99si7581747plb.126.2023.09.04.08.58.20; Mon, 04 Sep 2023 08:58:34 -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=rzISwFr2; 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 S233320AbjIDOrW (ORCPT + 99 others); Mon, 4 Sep 2023 10:47:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230477AbjIDOrW (ORCPT ); Mon, 4 Sep 2023 10:47:22 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 318531B9 for ; Mon, 4 Sep 2023 07:47:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D467CB80DB8 for ; Mon, 4 Sep 2023 14:47:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B920C433C8; Mon, 4 Sep 2023 14:47:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1693838836; bh=00vX/S/bZEFxcOzXRYU8XSPRx2QXSBBtaI9lexJnG8Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rzISwFr28zXS9GvtLthacWON48kxuF1gVv0qUb8O9mRw+CPTXyQm+U7jSnVvgQSO/ g6XtOJFAx7LUOgzA6cHHyGtu6Azy9nGtmynBO3lq7bkThEHBsSDxgyw6BIKE1B8Ho5 mNIYF+tf7p9Uu2F6//TKq//qvhjL80NS79etcOBAQUXW8e4FIJXdK1Noy8RECblL0J Oj0fMPf5y7lU8iAsAuBBjYC5MmhKytLgCySG7qXaaugOQCVeRbipSsKBADv2zolRsB gKAct38ncmcG+/QZdyqBLSeGHoy0qH0d3GZ1H0qbHlRZ9fHj6qo8Pj0cgJT229bnIc ZAgFEcxDJ5Vjw== Date: Mon, 4 Sep 2023 22:35:23 +0800 From: Jisheng Zhang To: Xiao Wang Cc: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] riscv: alternative: remove alternative boundary symbols in vdso Message-ID: References: <20230902022510.818602-1-xiao.w.wang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230902022510.818602-1-xiao.w.wang@intel.com> 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 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 On Sat, Sep 02, 2023 at 10:25:10AM +0800, Xiao Wang wrote: > Instruction patching for vdso is based on elf header parsing to get the > beginning and ending of .alternative section, the __alt_start and __alt_end > symbols defined in vdso linker script are not used, so this patch removes > them. The same patch has been in mailist since July: https://lore.kernel.org/linux-riscv/20230726173024.3684-2-jszhang@kernel.org/ Thanks > > Signed-off-by: Xiao Wang > --- > arch/riscv/kernel/vdso/vdso.lds.S | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/arch/riscv/kernel/vdso/vdso.lds.S b/arch/riscv/kernel/vdso/vdso.lds.S > index 82ce64900f3d..d43fd7c7dd11 100644 > --- a/arch/riscv/kernel/vdso/vdso.lds.S > +++ b/arch/riscv/kernel/vdso/vdso.lds.S > @@ -42,9 +42,7 @@ SECTIONS > > . = ALIGN(4); > .alternative : { > - __alt_start = .; > *(.alternative) > - __alt_end = .; > } > > .data : { > -- > 2.25.1 >