about summary refs log tree commit diff
path: root/elf/rtld.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-11-17 12:20:29 +0100
committerFlorian Weimer <fweimer@redhat.com>2021-11-17 12:20:29 +0100
commitf1d333b5bfdb3561c93feb4b5653d051c3258c59 (patch)
treea7a2e391beed00f8daa4cc826a10d0c6a26240fd /elf/rtld.c
parent8bd336a00a5311bf7a9e99b3b0e9f01ff5faa74b (diff)
downloadglibc-f1d333b5bfdb3561c93feb4b5653d051c3258c59.tar.gz
glibc-f1d333b5bfdb3561c93feb4b5653d051c3258c59.tar.xz
glibc-f1d333b5bfdb3561c93feb4b5653d051c3258c59.zip
elf: Introduce GLRO (dl_libc_freeres), called from __libc_freeres
This will be used to deallocate memory allocated using the non-minimal
malloc.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'elf/rtld.c')
-rw-r--r--elf/rtld.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/elf/rtld.c b/elf/rtld.c
index be2d5d8e74..847141e21d 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -378,6 +378,7 @@ struct rtld_global_ro _rtld_global_ro attribute_relro =
     ._dl_catch_error = _rtld_catch_error,
     ._dl_error_free = _dl_error_free,
     ._dl_tls_get_addr_soft = _dl_tls_get_addr_soft,
+    ._dl_libc_freeres = __rtld_libc_freeres,
 #ifdef HAVE_DL_DISCOVER_OSVERSION
     ._dl_discover_osversion = _dl_discover_osversion
 #endif