diff options
| author | Florian Weimer <fweimer@redhat.com> | 2021-11-17 12:20:29 +0100 |
|---|---|---|
| committer | Florian Weimer <fweimer@redhat.com> | 2021-11-17 12:20:29 +0100 |
| commit | f1d333b5bfdb3561c93feb4b5653d051c3258c59 (patch) | |
| tree | a7a2e391beed00f8daa4cc826a10d0c6a26240fd /elf/dl-libc_freeres.c | |
| parent | 8bd336a00a5311bf7a9e99b3b0e9f01ff5faa74b (diff) | |
| download | 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/dl-libc_freeres.c')
| -rw-r--r-- | elf/dl-libc_freeres.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/elf/dl-libc_freeres.c b/elf/dl-libc_freeres.c new file mode 100644 index 0000000000..68f305a6f9 --- /dev/null +++ b/elf/dl-libc_freeres.c @@ -0,0 +1,24 @@ +/* Deallocating malloc'ed memory from the dynamic loader. + Copyright (C) 2021 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + <https://www.gnu.org/licenses/>. */ + +#include <ldsodefs.h> + +void +__rtld_libc_freeres (void) +{ +} |
