summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-09-18 19:20:56 +0000
committerUlrich Drepper <drepper@redhat.com>2007-09-18 19:20:56 +0000
commitb90395e6e9479e06ada7294044aaa150a094150f (patch)
treeb743ab6c481685f996e700bf24dca01e61258731 /include
parent874aa52349cc111d1f6ea5dff24bb14c306714e0 (diff)
downloadglibc-b90395e6e9479e06ada7294044aaa150a094150f.tar.gz
glibc-b90395e6e9479e06ada7294044aaa150a094150f.tar.xz
glibc-b90395e6e9479e06ada7294044aaa150a094150f.zip
* sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
	* elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
	DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
	* elf/dl-sym.c (do_sym): Likewise.
	* include/link.h (struct link_map): Add l_serial field.
	* elf/dl-object.c (_dl_new_object): Initialize l_serial.
	* elf/dl-lookup.c (add_dependency): Add flags argument.
	Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
	flags, use THREAD_GSCOPE_RESET_FLAG before and
	THREAD_GSCOPE_SET_FLAG after
	__rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
	Don't dereference map until it has been found on some list.
	If map->l_serial changed, return -1.
Diffstat (limited to 'include')
-rw-r--r--include/link.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/link.h b/include/link.h
index ccbbb8c45e..b373eeaf59 100644
--- a/include/link.h
+++ b/include/link.h
@@ -286,6 +286,8 @@ struct link_map
     ElfW(Addr) l_relro_addr;
     size_t l_relro_size;
 
+    unsigned long long int l_serial;
+
     /* Audit information.  This array apparent must be the last in the
        structure.  Never add something after it.  */
     struct auditstate