Message ID | 20240103171502.1358371-12-bugaevc@gmail.com (mailing list archive) |
---|---|
State | Committed |
Commit | fbfe0b20ab82550de65827e70aa89d8ae462b34d |
Headers |
Return-Path: <libc-alpha-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 45D87386182B for <patchwork@sourceware.org>; Wed, 3 Jan 2024 17:19:53 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by sourceware.org (Postfix) with ESMTPS id 4471E385828A for <libc-alpha@sourceware.org>; Wed, 3 Jan 2024 17:15:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4471E385828A Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4471E385828A Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::129 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704302120; cv=none; b=oTcwlki9QKxkNPNMOit5ZG0w53HPom4hECAjJ7pzzbZWhVGxc8av2O2D4sGqkuIw1UmFOP/lnaGokYWYXYARmNH7AzKn/xigmvbIf5xax6mWhIyTmylFy5XYgpIKBkSxCmXMj/q9F7RnU1VN7r2I6LqAXjnkFbLMXp4xltbj8GA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704302120; c=relaxed/simple; bh=tlnT47taDgNNQPX5PzrSM0GmLfUgxKMRVxFuC3y9WfU=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=m22QUkSEHV4WM5u70Yz+TCyNdkV/cV94YsPqOMuPDFQMMQCXGiV7jM6jGWVFyWRv2CALerl3TzFh64uUe2h+TbBztSJ3aPH4MEfJhGNhJGtqdfl5m8kbUr219gEZWD4ryzepTTbJy5ulv5uSKqfV/oGSRvpltVqs/F+3Dc1jBHA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-50ea98440a7so440646e87.1 for <libc-alpha@sourceware.org>; Wed, 03 Jan 2024 09:15:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704302115; x=1704906915; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=9/2X2z2fwKPg+Kk1SzP0lMVy8nTDU3whKtq7e1vOsaA=; b=jBuBcfZ/B/exSf+HbTpq5t+1AIyMhaSeTomvMZWu4Ha0C18YXWTWukI0ZlABuj1cvi puXkA6qnT0ZtfkS50gvihAN5YVGOSQjM++x949CFqf/OFn3Id9jDg/+qL7anIxNR8GEH xhSHjQq0WVTZEHiEtLL65B0Eac1tXlQP5PbGrSGsnXIuVkqTPY2KGQJYLK5O5xYtca9l EshuqEL2XI82s5LDemNNkh8GLjiY6QsOUumneg1Rsi7jK8mazI3LCdimubi4QC8fKo3z ESMIKXhNx0ruLJvMEeO8FmKGxmqMBCc37srFxtoFPYGXov1RoGQEg6R0z+Y2Fh+zW/3T TW0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704302115; x=1704906915; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9/2X2z2fwKPg+Kk1SzP0lMVy8nTDU3whKtq7e1vOsaA=; b=ux1HPQVrjVFD4DqOmpvuX8ukWUy20ZWHVS+onK+BJodUilQeK5UC/DsK6000i9b8pH 7v7oMLRUuNd3Jp7bHXi1SxaCLrKC678jcaBLtNRQX9TGVwAsyJZ21qN4ksf78ZoWdgI8 rCHB1hZycg5rnuYYpnGJ3m3sFtr3PA+UYmm+z2GVzKT8wvpKcIzK0+ojsD/0xSMRmZf9 NcElVT1XLZQ09Yot/SPIVnHpOhq/JHUNmwyrVUsO/8P+V1mCvRwyTj+aSCg2T3nf5tre D1juVLnmRSeTXhpZEtQMfzbR9eFOPtuf5yOCkxoIuIawJTwCqsJG8m24eGCEWyb+x7Ks fjcA== X-Gm-Message-State: AOJu0YwKCOfXXPfnrnRxDm+6KP8AlzXiwD5AViHhg5ASLfEFmjF3nRkb kdtQwtwqHXkZoOG5e1WXHIBzp7J5YTk= X-Google-Smtp-Source: AGHT+IFqArJtwLEs+bc6fii6AvMdgtozCrUgvJa6gQyBDq3MPfHyCrTxFNYM5ErvoWfXbJNJaFMoiA== X-Received: by 2002:a05:6512:3767:b0:50e:6818:5217 with SMTP id z7-20020a056512376700b0050e68185217mr4753195lft.1.1704302114836; Wed, 03 Jan 2024 09:15:14 -0800 (PST) Received: from surface-pro-6.. ([2a00:1370:818c:b32f:ebdc:fd0:376b:8006]) by smtp.gmail.com with ESMTPSA id y23-20020a196417000000b0050e6d84d177sm3546068lfb.279.2024.01.03.09.15.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 09:15:14 -0800 (PST) From: Sergey Bugaev <bugaevc@gmail.com> To: libc-alpha@sourceware.org, bug-hurd@gnu.org Subject: [RFC PATCH 11/23] hurd: Initializy _dl_pagesize early in static builds Date: Wed, 3 Jan 2024 20:14:44 +0300 Message-ID: <20240103171502.1358371-12-bugaevc@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240103171502.1358371-1-bugaevc@gmail.com> References: <20240103171502.1358371-1-bugaevc@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, 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 server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org |
Series |
aarch64-gnu port
|
|
Checks
Context | Check | Description |
---|---|---|
redhat-pt-bot/TryBot-apply_patch | success | Patch applied to master at the time it was sent |
linaro-tcwg-bot/tcwg_glibc_build--master-arm | fail | Patch failed to apply |
Commit Message
Sergey Bugaev
Jan. 3, 2024, 5:14 p.m. UTC
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 <bugaevc@gmail.com>
---
sysdeps/mach/hurd/init-first.c | 4 ++++
1 file changed, 4 insertions(+)
Comments
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 <bugaevc@gmail.com> > --- > 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 > >
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