From b94817f9139b92e4bde284a63b1b6ec570055d38 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 29 Oct 2006 21:46:32 +0000 Subject: * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P. * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise. * elf/dl-close.c (_dl_close_worker): Likewise. * elf/dl-open.c (_dl_open_worker): Likewise. * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define. --- elf/dl-runtime.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'elf/dl-runtime.c') diff --git a/elf/dl-runtime.c b/elf/dl-runtime.c index 0488fab8d0..afc99f6150 100644 --- a/elf/dl-runtime.c +++ b/elf/dl-runtime.c @@ -93,14 +93,14 @@ _dl_fixup ( version = NULL; } - if (l->l_type == lt_loaded && !SINGLE_THREAD_P) + if (l->l_type == lt_loaded && !RTLD_SINGLE_THREAD_P) __rtld_mrlock_lock (l->l_scope_lock); result = _dl_lookup_symbol_x (strtab + sym->st_name, l, &sym, l->l_scope, version, ELF_RTYPE_CLASS_PLT, DL_LOOKUP_ADD_DEPENDENCY, NULL); - if (l->l_type == lt_loaded && !SINGLE_THREAD_P) + if (l->l_type == lt_loaded && !RTLD_SINGLE_THREAD_P) __rtld_mrlock_unlock (l->l_scope_lock); /* Currently result contains the base load address (or link map) @@ -181,7 +181,7 @@ _dl_profile_fixup ( version = NULL; } - if (l->l_type == lt_loaded && !SINGLE_THREAD_P) + if (l->l_type == lt_loaded && !RTLD_SINGLE_THREAD_P) __rtld_mrlock_lock (l->l_scope_lock); result = _dl_lookup_symbol_x (strtab + refsym->st_name, l, &defsym, @@ -189,7 +189,7 @@ _dl_profile_fixup ( ELF_RTYPE_CLASS_PLT, DL_LOOKUP_ADD_DEPENDENCY, NULL); - if (l->l_type == lt_loaded && !SINGLE_THREAD_P) + if (l->l_type == lt_loaded && !RTLD_SINGLE_THREAD_P) __rtld_mrlock_unlock (l->l_scope_lock); /* Currently result contains the base load address (or link map) -- cgit v1.2.3