[PATCH v3 13/32] elf: Merge __dl_libc_freemem into __rtld_libc_freeres

Florian Weimer fweimer@redhat.com
Sun Feb 2 18:10:35 GMT 2025


* Joseph Myers:

> On Thu, 7 Dec 2023, Florian Weimer wrote:
>
>> The functions serve very similar purposes.  The advantage of
>> __rtld_libc_freeres is that it is locate 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).
>
> OK.  (s/it is locate/it is located/ in the commit message.)

Thanks.  Fixed, and will push this separately after testing.

Florian



More information about the Libc-alpha mailing list