about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-15 14:21:53 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-15 14:21:53 +0100
commitf05faf5f22ecc20d3ba9791d7c60beb2d20aff52 (patch)
tree1ad8295cc32fdfe6c4ec3b5b4d5967fd43e70314 /sysdeps
parent4974c7cd8f5683d77e54cb04ab7b925224da702a (diff)
downloadglibc-f05faf5f22ecc20d3ba9791d7c60beb2d20aff52.tar.gz
glibc-f05faf5f22ecc20d3ba9791d7c60beb2d20aff52.tar.xz
glibc-f05faf5f22ecc20d3ba9791d7c60beb2d20aff52.zip
[hurd] Call _dl_sort_maps_init in _dl_sysdep_start
This follows 15a0c5730d1d ("elf: Fix slow DSO sorting behavior in
dynamic loader (BZ #17645)").
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/mach/hurd/dl-sysdep.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c
index 10a026f810..51c7bc3e88 100644
--- a/sysdeps/mach/hurd/dl-sysdep.c
+++ b/sysdeps/mach/hurd/dl-sysdep.c
@@ -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