mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
hurd: Initializy _dl_pagesize early in static builds
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> Message-ID: <20240103171502.1358371-12-bugaevc@gmail.com>
This commit is contained in:
parent
4145de65f6
commit
fbfe0b20ab
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user