From nobody Fri Dec 19 04:52:22 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6FE9FCA0FF6 for ; Sat, 2 Sep 2023 02:16:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348230AbjIBCQ1 (ORCPT ); Fri, 1 Sep 2023 22:16:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjIBCQ0 (ORCPT ); Fri, 1 Sep 2023 22:16:26 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3302C10FA for ; Fri, 1 Sep 2023 19:16:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1693620984; x=1725156984; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=QQJudmV/d8S0VGYKMNHaf/x+fCWhFZ7iX/FdKSi9lNw=; b=nnzZ31mAktgMepgp8B4WvseR1ZYYgOlJZkbbWBAtVfycjvNOUvxTWjaK IAvp5XN4E3U8NxpyU+oMmShEIy+QmUD+4Dg5IZtEmEWxHZoShSvnNDv2+ yw5KHZFfIhvwX4BVmkUK3FxV9RntG+BadTS/1xccrpVO4KnXc81m0kpa+ 5EbtvUNhAUEr6U3Hw3MN0G8AN6pG91xghDYudgojYoHk/XnJphsNIQnhx geEdYFyJGpwE3uWMgm7saIJ8LwWE08h/KJREXHbYDq145APiyBJg0sTI4 WaKLnuCS08KzvbxAYeRpB16b699Rj+KyRLA+w0JfN6MoPQv8jyvZBmui6 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10819"; a="355839432" X-IronPort-AV: E=Sophos;i="6.02,221,1688454000"; d="scan'208";a="355839432" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2023 19:16:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10819"; a="863743767" X-IronPort-AV: E=Sophos;i="6.02,221,1688454000"; d="scan'208";a="863743767" Received: from xiao-desktop.sh.intel.com ([10.239.46.158]) by orsmga004.jf.intel.com with ESMTP; 01 Sep 2023 19:16:21 -0700 From: Xiao Wang To: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu Cc: jszhang@kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Xiao Wang Subject: [PATCH] riscv: alternative: remove alternative boundary symbols in vdso Date: Sat, 2 Sep 2023 10:25:10 +0800 Message-Id: <20230902022510.818602-1-xiao.w.wang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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. 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/vds= o.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 =20 . =3D ALIGN(4); .alternative : { - __alt_start =3D .; *(.alternative) - __alt_end =3D .; } =20 .data : { --=20 2.25.1