Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1352775rwb; Wed, 26 Jul 2023 11:07:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlFtQ4n86BcI54k5Ho333fylP/Tf9oUGs7HNvY9a1f08P9VN1RUNPvJZheg5ZgLW3S8bvUiB X-Received: by 2002:a2e:918a:0:b0:2b6:dec9:2813 with SMTP id f10-20020a2e918a000000b002b6dec92813mr2161612ljg.29.1690394841540; Wed, 26 Jul 2023 11:07:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690394841; cv=none; d=google.com; s=arc-20160816; b=fA/8r3MrhPckUyJmc8xjFMZErBQqXz8RbOPVQ8XRNgGFEw47jgWZlHbxa2/cZtFa/w IWZVZTBIqyVqc2+bCNnXexGNplsx02Zb3tcgZuyIWjWYoVRNp17HOnN9goF6NeHL7wmy BVb0vBhDlcGYo5wzLEqPRaBb139zCYXCh6BLUNO+YtRLtrxZ8nr61whiQaTUy+cM3+Q8 TS94CjxQgOJtzCzeA1TgIKZgsPOjHHtY3MASdYfPFqLN8/HQx2oajmJztpFF7P8xJjFI 9MjlwSFDq3crFihRHYhOSs4R0EhaxBtIFTUyIGgD7zC0GWr1e1EPyHIVViUd8aOF5SfW rLFA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=0fbddAJPO1kteFMpLPwx05xfyWqxYVU4kv3n8aVUiAk=; fh=2AmsHgAxkXvhtq2BfB2hBoQPDQHM9O1rz+6h2hgCO5A=; b=WNASOA26trolasUMnXAx1JnEKdqX5OluVgIUnqFm8uWrec5z+yPtD1rAt2aynhlLex nLW7DjHd0joBUrm3mGMb+euQfEoQ91SIRui0B6blPFHKiHJ/vQvO7oiq/jBKunA3pV8x ZmZyv9+xzgz8xGUpUoTEmRx6LTp3fun2FSZ5kvSovW9GOpc3fNr2dmWVl4po2weKmkvy JqzlYT3iJtXt8LVKLh6wKl2sOMDhRq3fwoEAvAs3cbzDDlh1NSZ5upLl4vlxGLGTZZN6 bT/QIJ0CVW83erANTOD1BWbI8xUkhjxsqXaM41Z5ti8eww3ExnTQeL+E3TVe9exns0b9 30pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UhLvcZHN; 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 t15-20020a1709064f0f00b0099b6bff4a56si8597033eju.6.2023.07.26.11.06.55; Wed, 26 Jul 2023 11:07:21 -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=UhLvcZHN; 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 S229938AbjGZRmD (ORCPT + 99 others); Wed, 26 Jul 2023 13:42:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229541AbjGZRmB (ORCPT ); Wed, 26 Jul 2023 13:42:01 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 212482685 for ; Wed, 26 Jul 2023 10:42:01 -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) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B3D9061BE2 for ; Wed, 26 Jul 2023 17:42:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE632C433C8; Wed, 26 Jul 2023 17:41:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690393320; bh=dMC0uSI27EU23WMp3+VJekGrCo9Z7fUubo7Y54KD6PA=; h=From:To:Cc:Subject:Date:From; b=UhLvcZHN4xJmXgD+c0TELRci4mIYAjXQUSdPuSKlpunL1yhtHSoXQ5GOEGtJLE8oS M47JXYUfn/4jeQiWRCUhfTs2ZIlyi9AMqvZufysykqUl7kBg/RiyGhJDDcRqLigUWo 0igZkZxbU3Y14nU0ttNNpvs2tTl+xpGcB8Ngj/ZoCReBmz/Tv0u6tS+aS1fnGHQ79Q GsQN/Gk8sA4Lzt6AqjmRPwAjCPTvjFoDB0VUWgeAVgQLrOTIsuzcEb4F+x28RC+Pp7 7FWX88/bSamgO6NiFBdrJYTjJzEsnhG8PEwCZPVs5zzT6FVP7Lxw+mY4r/Wdw7V81x eL7LSaXuFASYQ== From: Jisheng Zhang To: Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Andrew Jones , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] riscv: vdso.lds.S: some improvement Date: Thu, 27 Jul 2023 01:30:21 +0800 Message-Id: <20230726173024.3684-1-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 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 This series renews one of my last year RFC patch[1], tries to improve the vdso layout a bit. patch1 removes useless symbols patch2 merges .data section of vdso into .rodata because they are readonly patch3 is the real renew patch, it removes hardcoded 0x800 .text start addr. But I rewrite the commit msg per Andrew's suggestions and move move .note, .eh_frame_hdr, and .eh_frame between .rodata and .text to keep the actual code well away from the non-instruction data. Link: https://lore.kernel.org/linux-riscv/20221123161805.1579-1-jszhang@kernel.org/ [1] Jisheng Zhang (3): riscv: vdso.lds.S: drop __alt_start and __alt_end symbols riscv: vdso.lds.S: merge .data section into .rodata section riscv: vdso.lds.S: remove hardcoded 0x800 .text start addr arch/riscv/kernel/vdso/vdso.lds.S | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) -- 2.40.1