179894
commit ad78d702757a189b1fa552d607e8aaa22252a45f
179894
Author: Florian Weimer <fweimer@redhat.com>
179894
Date:   Tue May 12 19:06:18 2020 +0200
179894
179894
    elf: Remove redundant add_to_global_resize_failure  call from dl_open_args
179894
    
179894
    The second call does not do anything because the data structures have
179894
    already been resized by the call that comes before the demarcation
179894
    point.  Fixes commit a509eb117fac1d764b15eba64993f4bdb63d7f3c
179894
    ("Avoid late dlopen failure due to scope, TLS slotinfo updates
179894
    [BZ #25112]").
179894
    
179894
    Reviewed-by: Carlos O'Donell <carlos@redhat.com>
179894
179894
diff --git a/elf/dl-open.c b/elf/dl-open.c
179894
index 3d49a84596e99bf6..b052bb0bc2cd17aa 100644
179894
--- a/elf/dl-open.c
179894
+++ b/elf/dl-open.c
179894
@@ -769,11 +769,6 @@ dl_open_worker (void *a)
179894
   DL_STATIC_INIT (new);
179894
 #endif
179894
 
179894
-  /* Perform the necessary allocations for adding new global objects
179894
-     to the global scope below, via add_to_global_update.  */
179894
-  if (mode & RTLD_GLOBAL)
179894
-    add_to_global_resize (new);
179894
-
179894
   /* Run the initializer functions of new objects.  Temporarily
179894
      disable the exception handler, so that lazy binding failures are
179894
      fatal.  */