summary refs log tree commit diff
path: root/elf/Makefile
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2022-10-27 11:36:44 +0200
committerFlorian Weimer <fweimer@redhat.com>2022-10-27 11:36:44 +0200
commit6f360366f7f76b158a0f4bf20d42f2854ad56264 (patch)
tree28f8951950311cfab96b60143e28ef96d9f9d036 /elf/Makefile
parenta65ff76c9a1811dd2396ab45563f645579c0e687 (diff)
downloadglibc-6f360366f7f76b158a0f4bf20d42f2854ad56264.tar.gz
glibc-6f360366f7f76b158a0f4bf20d42f2854ad56264.tar.xz
glibc-6f360366f7f76b158a0f4bf20d42f2854ad56264.zip
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  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'elf/Makefile')
-rw-r--r--elf/Makefile1
1 files changed, 1 insertions, 0 deletions
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 \