about summary refs log tree commit diff
path: root/ports/sysdeps/unix/sysv/linux/mips/dl-static.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@codesourcery.com>2013-06-27 11:15:51 +0100
committerMaciej W. Rozycki <macro@codesourcery.com>2013-06-27 11:49:44 +0100
commitfe114d206479a36369d732ea260e81a686fdbb0b (patch)
treeb073a6e619dd39a7215e042cc76116ba96ca9a23 /ports/sysdeps/unix/sysv/linux/mips/dl-static.c
parentcbe7d24bb48d5f572d714d893a27a8858870b1d2 (diff)
downloadglibc-fe114d206479a36369d732ea260e81a686fdbb0b.tar.gz
glibc-fe114d206479a36369d732ea260e81a686fdbb0b.tar.xz
glibc-fe114d206479a36369d732ea260e81a686fdbb0b.zip
_dl_static_init: Remove nested locking.
This function is now called from dl_open_worker with the GL(dl_load_lock)
lock held and no longer needs local protection.  GL(dl_load_lock) also
correctly protects _dl_lookup_symbol_x called here that relies on the
caller to have serialized access to the data structures it uses.
Diffstat (limited to 'ports/sysdeps/unix/sysv/linux/mips/dl-static.c')
-rw-r--r--ports/sysdeps/unix/sysv/linux/mips/dl-static.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/ports/sysdeps/unix/sysv/linux/mips/dl-static.c b/ports/sysdeps/unix/sysv/linux/mips/dl-static.c
index e0501be3b6..9290ed9ed3 100644
--- a/ports/sysdeps/unix/sysv/linux/mips/dl-static.c
+++ b/ports/sysdeps/unix/sysv/linux/mips/dl-static.c
@@ -33,9 +33,6 @@ _dl_var_init (void *array[])
 }
 
 #else
-#include <bits/libc-lock.h>
-
-__libc_lock_define_initialized_recursive (static, _dl_static_lock)
 
 static void *variables[] =
 {
@@ -64,8 +61,6 @@ _dl_static_init (struct link_map *l)
   void (*f) (void *[]);
   size_t i;
 
-  __libc_lock_lock_recursive (_dl_static_lock);
-
   loadbase = _dl_lookup_symbol_x ("_dl_var_init", l, &ref, l->l_local_scope,
 				  NULL, 0, 1, NULL);
 
@@ -84,8 +79,6 @@ _dl_static_init (struct link_map *l)
       f (variables);
       _dl_protect_relro (rtld_map);
     }
-
-  __libc_lock_unlock_recursive (_dl_static_lock);
 }
 
 #endif