]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
elf: Remove DL_STATIC_INIT
authorFlorian Weimer <fweimer@redhat.com>
Mon, 17 May 2021 07:59:14 +0000 (09:59 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 17 May 2021 08:08:19 +0000 (10:08 +0200)
All users have been converted to the __rtld_static_init mechanism.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
elf/dl-open.c
sysdeps/generic/ldsodefs.h

index c2ac5ee94f716e2034050337c851d5184960163c..d2240d87474e0b85fb4f90869ca623b0597a3477 100644 (file)
@@ -781,10 +781,6 @@ dl_open_worker (void *a)
       _dl_call_libc_early_init (libc_map, initial);
     }
 
-#ifndef SHARED
-  DL_STATIC_INIT (new);
-#endif
-
   /* Run the initializer functions of new objects.  Temporarily
      disable the exception handler, so that lazy binding failures are
      fatal.  */
index e43d6f5ecd21124fb863fe807f3d2baab52004d1..c288f3a2a1b250ad7f6a15a54be41d5bb175fd50 100644 (file)
@@ -135,12 +135,6 @@ dl_symbol_visibility_binds_local_p (const ElfW(Sym) *sym)
 # define DL_UNMAP(map) _dl_unmap_segments (map)
 #endif
 
-/* By default we do not need special support to initialize DSOs loaded
-   by statically linked binaries.  */
-#ifndef DL_STATIC_INIT
-# define DL_STATIC_INIT(map)
-#endif
-
 /* Reloc type classes as returned by elf_machine_type_class().
    ELF_RTYPE_CLASS_PLT means this reloc should not be satisfied by
    some PLT symbol, ELF_RTYPE_CLASS_COPY means this reloc should not be