diff options
author | Andreas Krebbel <Andreas.Krebbel@de.ibm.com> | 2010-10-26 00:23:14 -0400 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2010-10-26 00:23:14 -0400 |
commit | f09677388a44cd1460f8986ef1b096c73bd5b958 (patch) | |
tree | be86216cc5afa7ce2e708c53fef206468b675bd9 /sysdeps/generic/ldsodefs.h | |
parent | dbf3a06904168417a05882a871342e7a9ee3b383 (diff) | |
download | glibc-f09677388a44cd1460f8986ef1b096c73bd5b958.tar.gz glibc-f09677388a44cd1460f8986ef1b096c73bd5b958.tar.xz glibc-f09677388a44cd1460f8986ef1b096c73bd5b958.zip |
Fix concurrency problem between dl_open and dl_iterate_phdr
Diffstat (limited to 'sysdeps/generic/ldsodefs.h')
-rw-r--r-- | sysdeps/generic/ldsodefs.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h index fa4b6b284e..d0405903c1 100644 --- a/sysdeps/generic/ldsodefs.h +++ b/sysdeps/generic/ldsodefs.h @@ -891,8 +891,11 @@ extern lookup_t _dl_lookup_symbol_x (const char *undef, extern ElfW(Addr) _dl_symbol_value (struct link_map *map, const char *name) internal_function; -/* Allocate a `struct link_map' for a new object being loaded, - and enter it into the _dl_main_map list. */ +/* Add the new link_map NEW to the end of the namespace list. */ +extern void _dl_add_to_namespace_list (struct link_map *new, Lmid_t nsid) + internal_function attribute_hidden; + +/* Allocate a `struct link_map' for a new object being loaded. */ extern struct link_map *_dl_new_object (char *realname, const char *libname, int type, struct link_map *loader, int mode, Lmid_t nsid) |