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