4fc7fc
commit 0884724a95b60452ad483dbe086d237d02ba624d
4fc7fc
Author: Florian Weimer <fweimer@redhat.com>
4fc7fc
Date:   Tue Dec 14 12:37:44 2021 +0100
4fc7fc
4fc7fc
    elf: Use new dependency sorting algorithm by default
4fc7fc
    
4fc7fc
    The default has to change eventually, and there are no known failures
4fc7fc
    that require a delay.
4fc7fc
    
4fc7fc
    Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4fc7fc
4fc7fc
diff --git a/elf/dl-tunables.list b/elf/dl-tunables.list
4fc7fc
index 54ef2a921310b229..f11ca5b3e8b09b43 100644
4fc7fc
--- a/elf/dl-tunables.list
4fc7fc
+++ b/elf/dl-tunables.list
4fc7fc
@@ -146,7 +146,7 @@ glibc {
4fc7fc
       type: INT_32
4fc7fc
       minval: 1
4fc7fc
       maxval: 2
4fc7fc
-      default: 1
4fc7fc
+      default: 2
4fc7fc
     }
4fc7fc
   }
4fc7fc
 }
4fc7fc
diff --git a/elf/tst-rtld-list-tunables.exp b/elf/tst-rtld-list-tunables.exp
4fc7fc
index 118afc271057afd4..478ee8ab091685eb 100644
4fc7fc
--- a/elf/tst-rtld-list-tunables.exp
4fc7fc
+++ b/elf/tst-rtld-list-tunables.exp
4fc7fc
@@ -10,6 +10,6 @@ glibc.malloc.tcache_max: 0x0 (min: 0x0, max: 0x[f]+)
4fc7fc
 glibc.malloc.tcache_unsorted_limit: 0x0 (min: 0x0, max: 0x[f]+)
4fc7fc
 glibc.malloc.top_pad: 0x0 (min: 0x0, max: 0x[f]+)
4fc7fc
 glibc.malloc.trim_threshold: 0x0 (min: 0x0, max: 0x[f]+)
4fc7fc
-glibc.rtld.dynamic_sort: 1 (min: 1, max: 2)
4fc7fc
+glibc.rtld.dynamic_sort: 2 (min: 1, max: 2)
4fc7fc
 glibc.rtld.nns: 0x4 (min: 0x1, max: 0x10)
4fc7fc
 glibc.rtld.optional_static_tls: 0x200 (min: 0x0, max: 0x[f]+)
4fc7fc
diff --git a/manual/tunables.texi b/manual/tunables.texi
4fc7fc
index c3f96cdc85208926..7b70e80391ee87f7 100644
4fc7fc
--- a/manual/tunables.texi
4fc7fc
+++ b/manual/tunables.texi
4fc7fc
@@ -312,7 +312,7 @@ value of @samp{2}, a different algorithm is used, which implements a
4fc7fc
 topological sort through depth-first search, and does not exhibit the
4fc7fc
 performance issues of @samp{1}.
4fc7fc
 
4fc7fc
-The default value of this tunable is @samp{1}.
4fc7fc
+The default value of this tunable is @samp{2}.
4fc7fc
 @end deftp
4fc7fc
 
4fc7fc
 @node Elision Tunables