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