[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH 11/23] hurd: Initializy _dl_pagesize early in static buil
From: |
Samuel Thibault |
Subject: |
Re: [RFC PATCH 11/23] hurd: Initializy _dl_pagesize early in static builds |
Date: |
Thu, 4 Jan 2024 23:48:43 +0100 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
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
>
>
--
Samuel
---
Pour une évaluation indépendante, transparente et rigoureuse !
Je soutiens la Commission d'Évaluation de l'Inria.
- Re: [RFC PATCH 08/23] hurd: Drop x86-specific assembly from init-first.c, (continued)
- [RFC PATCH 07/23] hurd: Pass the data pointer to _hurd_stack_setup explicitly, Sergey Bugaev, 2024/01/03
- [PATCH 06/23] mach: Drop SNARF_ARGS macro, Sergey Bugaev, 2024/01/03
- [RFC PATCH 09/23] hurd: Make init-first.c no longer x86-specific, Sergey Bugaev, 2024/01/03
- [RFC PATCH 10/23] hurd: Only init early static TLS if it's used to store stack or pointer guards, Sergey Bugaev, 2024/01/03
- [RFC PATCH 11/23] hurd: Initializy _dl_pagesize early in static builds, Sergey Bugaev, 2024/01/03
- Re: [RFC PATCH 11/23] hurd: Initializy _dl_pagesize early in static builds,
Samuel Thibault <=
- [RFC PATCH 12/23] aarch64: Make cpu-features definitions not Linux-specific, Sergey Bugaev, 2024/01/03
- [RFC PATCH 13/23] aarch64: Add dl-procinfo, Sergey Bugaev, 2024/01/03
- [RFC PATCH 14/23] aarch64: Allow building without kernel support for BTI, Sergey Bugaev, 2024/01/03
- [RFC PATCH 15/23] mach: Add a basic AArch64 port, Sergey Bugaev, 2024/01/03
- [RFC PATCH 16/23] hurd: Add a basic AArch64 port, Sergey Bugaev, 2024/01/03
- [RFC PATCH 19/23] Add FPE_FLTIDO, Sergey Bugaev, 2024/01/03
- [RFC PATCH 18/23] hurd: Implement longjmp for AArch64, Sergey Bugaev, 2024/01/03
- [RFC PATCH 21/23] htl: Implement some support for TLS_DTV_AT_TP, Sergey Bugaev, 2024/01/03
- [RFC PATCH 22/23] htl: Add an AArch64 implementation, Sergey Bugaev, 2024/01/03