From 6f360366f7f76b158a0f4bf20d42f2854ad56264 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 27 Oct 2022 11:36:44 +0200 Subject: elf: Introduce to _dl_call_fini This consolidates the destructor invocations from _dl_fini and dlclose. Remove the micro-optimization that avoids calling _dl_call_fini if they are no destructors (as dlclose is quite expensive anyway). The debug log message is now printed unconditionally. Reviewed-by: Adhemerval Zanella --- elf/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'elf/Makefile') diff --git a/elf/Makefile b/elf/Makefile index 7b50ccc07a..86c960cf8a 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -53,6 +53,7 @@ routines = \ # profiled libraries. dl-routines = \ dl-call-libc-early-init \ + dl-call_fini \ dl-close \ dl-debug \ dl-debug-symbols \ -- cgit 1.4.1