(_dl_fixup, _dl_profile_fixup): Use RTLD_SINGLE_THREAD_P.
authordrepper <drepper>
Sun, 29 Oct 2006 21:43:58 +0000 (21:43 +0000)
committerdrepper <drepper>
Sun, 29 Oct 2006 21:43:58 +0000 (21:43 +0000)
elf/dl-runtime.c

index 0488fab..afc99f6 100644 (file)
@@ -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)