about summary refs log tree commit diff
path: root/elf/dynamic-link.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-07-24 22:17:17 +0000
committerUlrich Drepper <drepper@redhat.com>1999-07-24 22:17:17 +0000
commite28bacf5785e4c1b3f7c6fc219163dbec9b8addb (patch)
tree1a599f39a680d70f9a13ffbaba4897ac4175d668 /elf/dynamic-link.h
parentfcf70d4114db9ff7923f5dfeb3fea6e2d623e5c2 (diff)
downloadglibc-e28bacf5785e4c1b3f7c6fc219163dbec9b8addb.tar.gz
glibc-e28bacf5785e4c1b3f7c6fc219163dbec9b8addb.tar.xz
glibc-e28bacf5785e4c1b3f7c6fc219163dbec9b8addb.zip
Update.
	* elf/Makefile (dl-routines): Add preinit.
	* elf/Versions [ld.so] (GLIBC_2.2): Export _dl_preinit_next.
	* elf/link.h (struct link_map): Add new field l_preinitcount.
	* elf/dl-preinit.c: New file.
	* elf/dynamic-link.h: Initialize l_preinitcount.
	* sysdeps/i386/dl-machine.h (RTLD_START): Call pre-init functions.
Diffstat (limited to 'elf/dynamic-link.h')
-rw-r--r--elf/dynamic-link.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/elf/dynamic-link.h b/elf/dynamic-link.h
index bdd297e24b..7edac41cc0 100644
--- a/elf/dynamic-link.h
+++ b/elf/dynamic-link.h
@@ -118,6 +118,10 @@ elf_get_dynamic_info (struct link_map *l)
 			? (info[DT_INIT_ARRAYSZ]->d_un.d_val
 			   / sizeof (ElfW(Addr)))
 			: 0);
+  l->l_preinitcount = (info[DT_PREINIT_ARRAY]
+		       ? (info[DT_PREINIT_ARRAYSZ]->d_un.d_val
+			  / sizeof (ElfW(Addr)))
+		       : 0);
   if (info[DT_RUNPATH] != NULL)
     /* If both RUNPATH and RPATH are given, the latter is ignored.  */
     info[DT_RPATH] = NULL;