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