]> git.ipfire.org Git - thirdparty/glibc.git/commit
elf: Merge __dl_libc_freemem into __rtld_libc_freeres
authorFlorian Weimer <fweimer@redhat.com>
Sun, 2 Feb 2025 19:10:09 +0000 (20:10 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Sun, 2 Feb 2025 19:10:09 +0000 (20:10 +0100)
commitd12cb8e45232f11ee77f8b6d8cd71cc96fbff4a4
tree9a8183abdca87c4043bfb63add0533042442d47c
parent749310c61b66aa2af0422db25686440b64a14800
elf: Merge __dl_libc_freemem into __rtld_libc_freeres

The functions serve very similar purposes.  The advantage of
__rtld_libc_freeres is that it is located within ld.so, so it is
more natural to poke at link map internals there.

This slightly regresses cleanup capabilities for statically linked
binaries.  If that becomes a problem, we should start calling
__rtld_libc_freeres from __libc_freeres (perhaps after renaming it).
elf/dl-libc.c
elf/dl-libc_freeres.c
include/set-freeres.h
malloc/set-freeres.c