]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
[hurd] Call _dl_sort_maps_init in _dl_sysdep_start
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 15 Jan 2022 13:21:53 +0000 (14:21 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 15 Jan 2022 13:21:53 +0000 (14:21 +0100)
This follows 15a0c5730d1d ("elf: Fix slow DSO sorting behavior in
dynamic loader (BZ #17645)").

sysdeps/mach/hurd/dl-sysdep.c

index 10a026f810a8013469f66d8ec332a292fa503be6..51c7bc3e88238c6a1b9b69660d6bbd0687c73740 100644 (file)
@@ -98,6 +98,9 @@ _dl_sysdep_start (void **start_argptr,
 
       __tunables_init (_environ);
 
+      /* Initialize DSO sorting algorithm after tunables.  */
+      _dl_sort_maps_init ();
+
 #ifdef DL_SYSDEP_INIT
       DL_SYSDEP_INIT;
 #endif