From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id A921F1F451 for ; Thu, 4 Jan 2024 22:49:10 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (2048-bit key; unprotected) header.d=gnu.org header.i=@gnu.org header.a=rsa-sha256 header.s=fencepost-gnu-org header.b=MmvOwdqi; dkim-atps=neutral Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E35D9386F83C for ; Thu, 4 Jan 2024 22:49:09 +0000 (GMT) Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 2B5E4387084B for ; Thu, 4 Jan 2024 22:48:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2B5E4387084B Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2B5E4387084B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:142:3::10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704408528; cv=none; b=BKPZWEsoRX0MB1VfQP0wrBmnarcp9/Z4Ys2c9l9hlf6CbEiEU6+94eHzc/VYyEpD5B18rquNXvvwkQYWOLRLXeFYfoJzG5/CZ0Apf6O6QJPPfYVEIgkEB8toWGfdzSqahHWf44F/twiNSPXH2WSaHdGNeD3q68zM3YtEERxYncU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704408528; c=relaxed/simple; bh=+lWDERpMnRdYI4NpdQ8ecaWPFzYdg5wAc13rc7NYlJ8=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=veaVGfJxN1EAnBOLSoOiCtYTspwiqllenmFL+9c3KrAbJAh2UZWToBjzyQpA0PH5qOvvYw8ZmAdTMw/GSuY+sOHAbSlpwkelOvVljY5AiUiQ307hQa52pL47VZIgW/UHYUPVm8UW4Tg1cEnSqhnRHp/oWN07AnADxnuGWrIQbUQ= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rLWW5-0003eJ-QH; Thu, 04 Jan 2024 17:48:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=In-Reply-To:MIME-Version:References:Subject:To:From: Date; bh=7JMkaJ7sXZ/VQYaz5v38sByIxEJt1pShV45cvLMsvBU=; b=MmvOwdqi+uk0grYbWPRh IxNAEbclDsMRmEa5Pa+ykvmLCDp9TTPqEwsRPSmDmRiyibM9zJLrF4Sz2W5RI28cbYifiH8UBf5zb AShVyWHlN79on0tXya5whFYFrxnZwyiWR1lPx87T5ft2e2pk30t2SRDDTygs1qRlrm5so30plT6Py EYVnCkYOArVIyidJ8dHTg/mOX3p0kvNioiCDxUr5cyq1QYd3DLyp28pZv7rT+os18/wj4KyiJp4q4 O1m/zWNTrvSwHmI5a0P96EebYH21pc6InanF5VLwgN4yiuogXBcAMMcEGijWN5rQYs+hMDaJI5hqT zkU8IS5zU3GAuA==; Date: Thu, 4 Jan 2024 23:48:43 +0100 From: Samuel Thibault To: Sergey Bugaev Cc: libc-alpha@sourceware.org, bug-hurd@gnu.org Subject: Re: [RFC PATCH 11/23] hurd: Initializy _dl_pagesize early in static builds Message-ID: <20240104224843.ggknlcqxzchesxjz@begin> Mail-Followup-To: Sergey Bugaev , libc-alpha@sourceware.org, bug-hurd@gnu.org References: <20240103171502.1358371-1-bugaevc@gmail.com> <20240103171502.1358371-12-bugaevc@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240103171502.1358371-12-bugaevc@gmail.com> Organization: I am not organized User-Agent: NeoMutt/20170609 (1.8.3) X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Applied, thanks! Sergey Bugaev, le mer. 03 janv. 2024 20:14:44 +0300, a ecrit: > We fetch __vm_page_size as the very first RPC that we do, inside > __mach_init (). Propagate that to _dl_pagesize ASAP after that, > before any other initialization. > > In dynamic builds, this is already done immediately after > __mach_init (), inside _dl_sysdep_start (). > > Signed-off-by: Sergey Bugaev > --- > sysdeps/mach/hurd/init-first.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/sysdeps/mach/hurd/init-first.c b/sysdeps/mach/hurd/init-first.c > index 26ccd37e..22c35747 100644 > --- a/sysdeps/mach/hurd/init-first.c > +++ b/sysdeps/mach/hurd/init-first.c > @@ -162,6 +162,10 @@ first_init (void) > /* Initialize data structures so we can do RPCs. */ > __mach_init (); > > +#ifndef SHARED > + GLRO(dl_pagesize) = __vm_page_size; > +#endif > + > #if USE_INIT1_TCBHEAD > _hurd_tls_init (&__init1_tcbhead, 0); > #endif > -- > 2.43.0 > > -- Samuel --- Pour une évaluation indépendante, transparente et rigoureuse ! Je soutiens la Commission d'Évaluation de l'Inria.