From 7c11c4a14684f23babd5060931529f095b8f81d3 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 4 Aug 2004 21:58:10 +0000 Subject: (do_release_all): Add __libc_freeres_fn_section. --- elf/dl-close.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'elf') diff --git a/elf/dl-close.c b/elf/dl-close.c index 500b9d57d3..ca60ae5abe 100644 --- a/elf/dl-close.c +++ b/elf/dl-close.c @@ -565,7 +565,7 @@ libc_hidden_def (_dl_close) #ifdef USE_TLS -static bool +static bool __libc_freeres_fn_section free_slotinfo (struct dtv_slotinfo_list **elemp) { size_t cnt; @@ -623,11 +623,12 @@ libc_freeres_fn (free_mem) /* There was no initial TLS setup, it was set up later when it used the normal malloc. */ free_slotinfo (&GL(dl_tls_dtv_slotinfo_list)); + else # endif - /* The first element of the list does not have to be deallocated. - It was allocated in the dynamic linker (i.e., with a different - malloc), and in the static library it's in .bss space. */ - free_slotinfo (&GL(dl_tls_dtv_slotinfo_list)->next); + /* The first element of the list does not have to be deallocated. + It was allocated in the dynamic linker (i.e., with a different + malloc), and in the static library it's in .bss space. */ + free_slotinfo (&GL(dl_tls_dtv_slotinfo_list)->next); } #endif } -- cgit v1.2.3