From 0c8cc6e7ebfcdbcce8b06d284a74addbc7ba1c99 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 14 Apr 2018 18:32:18 +0100 Subject: libdl: remove LDSO_NO_CLEANUP --- ldso/libdl/Makefile.in | 4 ---- ldso/libdl/libdl.c | 13 ------------- 2 files changed, 17 deletions(-) (limited to 'ldso/libdl') diff --git a/ldso/libdl/Makefile.in b/ldso/libdl/Makefile.in index 3fd8a6cd1..3111e26be 100644 --- a/ldso/libdl/Makefile.in +++ b/ldso/libdl/Makefile.in @@ -20,10 +20,6 @@ CFLAGS-libdl.c := -DLDSO_ELFINTERP=\"$(TARGET_ARCH)/elfinterp.c\" LDFLAGS-$(UCLIBC_FORMAT_DSBT_ELF)-libdl.so := -Wl,--dsbt-index=3 LDFLAGS-libdl.so := $(LDFLAGS) -ifeq ($(LDSO_NO_CLEANUP),) -LDFLAGS-libdl.so += -Wl,-fini,$(SYMBOL_PREFIX)dl_cleanup -endif - LIBS-libdl.so := $(LIBS) $(ldso) libdl_DIR := $(top_srcdir)ldso/libdl diff --git a/ldso/libdl/libdl.c b/ldso/libdl/libdl.c index d102a48ab..5c52f0687 100644 --- a/ldso/libdl/libdl.c +++ b/ldso/libdl/libdl.c @@ -270,19 +270,6 @@ remove_slotinfo(size_t idx, struct dtv_slotinfo_list *listp, size_t disp, } #endif -#ifndef __LDSO_NO_CLEANUP__ -void dl_cleanup(void) attribute_hidden __attribute__ ((destructor)); -void dl_cleanup(void) -{ - struct dyn_elf *h, *n; - - for (h = _dl_handles; h; h = n) { - n = h->next_handle; - do_dlclose(h, 1); - } -} -#endif - static ptrdiff_t _dl_build_local_scope (struct elf_resolve **list, struct elf_resolve *map) { -- cgit v1.2.3