Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7619155rwb; Wed, 23 Nov 2022 08:39:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf7gwESv2kAcwMJPunLJ08lodtfbp0Vxev0mNPbwZq0sa8bAAnS3vWB15SdGZj3Q7GXFepAR X-Received: by 2002:a17:906:aac8:b0:7ae:df97:a033 with SMTP id kt8-20020a170906aac800b007aedf97a033mr7944143ejb.344.1669221539893; Wed, 23 Nov 2022 08:38:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669221539; cv=none; d=google.com; s=arc-20160816; b=yNHLXpr6p/CXFN4iWaBll3nI9L69ZX2onbQaZ8ufS988IX6Xk5v5bC0soxg4nyf0YZ /tyORrv/vrHVy5WWMzhnxZAqqR+JLMXKv5bL8GgX/i9RjYQsJwZI7rM9R/GiUsxe67st NgulMW4f05sX2ZIcNaisv3Eq8bihmbu2dLWXgYh60rdsilRlP0WYiL6dG5ibFv1wHQcu DKoQjBir6dlt6HB0Z/ahMxCh9MCYtW9nT6Eilc5Q+lcC3ZHWnD828JC+x/a2xs2gNOjl qVMiLNm3xZhoC29ZwKBa6mZBauCYIxjCuFRA5t+ktwLjiQSaIuzZ7giCRgyb3QBZtJHZ PhBw== 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=8S9bPJVwnByMjueVMPRQY+tH8+5wgYOYQ6hUt3Z1VFM=; b=hU6JL3uyKxEMzKtyM2x8L9CsA42b4h7gXd5R+UCtgF+Vhhmx0fVbTMxpXyUADxrgST Uhm8IzMPYQQ9E8QnTPV1sWIqXbTePsdGq86qGKRhf9FJmxjNGzTl42ZEVLbL0+RUh4OS FIwv4LVZ+RAdpn7zyMe138tO4k9XRQwcpwC9lTVCxyjLivIGj05QxFUVwmbgvkDFx8R9 ypgw3zBaD7GjPKx5eEMWJYuW2ZERmHUALlASTdyg5u6Yj5HHe+K/oLITpiXLK36mQrXR hWCYXjh6JskvOCmhiUrUDjXZEuviJvr/QgtDuTMODrHw+qWIPBbL9y77AL8rRC5tDKP5 WN/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gTvnwSCY; 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 k10-20020aa7d2ca000000b00469acead38esi6428938edr.1.2022.11.23.08.38.35; Wed, 23 Nov 2022 08:38:59 -0800 (PST) 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=gTvnwSCY; 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 S239162AbiKWQ2j (ORCPT + 88 others); Wed, 23 Nov 2022 11:28:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239135AbiKWQ2A (ORCPT ); Wed, 23 Nov 2022 11:28:00 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F49129CBF for ; Wed, 23 Nov 2022 08:27:56 -0800 (PST) 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 2B67761DE6 for ; Wed, 23 Nov 2022 16:27:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 159E0C433C1; Wed, 23 Nov 2022 16:27:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669220875; bh=RbFg5SUvS3xFJJRTRaVHi2bX1Rc8bI0Z/xmm4da0qQw=; h=From:To:Cc:Subject:Date:From; b=gTvnwSCYZ0wF4boR8aVWXndodyYNlX7xtCHMDLuAKCVA9rq6Kcy+XPbwZB+efS2sP ePy9soNF95TLT+xdeDx5hY66ofX4M9nWWEtUP2oVJkcIDl6CXtAINIpYPyHA5sRVjq +PLEp5/RNeu7JXuUlmd81XnM3hbOYziJKTKrJcI/BT/esU864J02NRp4hvzm/HtR68 DayvsbEUfIBGyYFs9YEY1pUqFA3L9wWbqLw4FzJ7OkhXzCSSeUgnZomdKkrBtthhJp WmzttKvBIcFq5ymMgoGJk+JCunnO3LDK/QIHXlX1NveT3hhFXckFAc2NgBNRus6z2a W8kK6Qt0M+IDg== From: Jisheng Zhang To: Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Andrew Jones Subject: [RFC PATCH] riscv: vdso: remove hardcoded 0x800 .text section start addr Date: Thu, 24 Nov 2022 00:18:05 +0800 Message-Id: <20221123161805.1579-1-jszhang@kernel.org> X-Mailer: git-send-email 2.37.2 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 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 It seems the hardcoded 0x800 isn't necessary, but removing it brings a small vdso.so and aligns with other architectures. Signed-off-by: Jisheng Zhang --- arch/riscv/kernel/vdso/vdso.lds.S | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/riscv/kernel/vdso/vdso.lds.S b/arch/riscv/kernel/vdso/vdso.lds.S index 150b1a572e61..7be7e618d59c 100644 --- a/arch/riscv/kernel/vdso/vdso.lds.S +++ b/arch/riscv/kernel/vdso/vdso.lds.S @@ -31,13 +31,7 @@ SECTIONS .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) } - /* - * This linker script is used both with -r and with -shared. - * For the layouts to match, we need to skip more than enough - * space for the dynamic symbol table, etc. If this amount is - * insufficient, ld -shared will error; simply increase it here. - */ - . = 0x800; + . = ALIGN(4); .text : { *(.text .text.*) } :text .data : { -- 2.37.2