about summary refs log tree commit diff
path: root/elf/dl-init.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-03-31 07:24:09 +0000
committerUlrich Drepper <drepper@redhat.com>2000-03-31 07:24:09 +0000
commit7688db9129490d0f31f4e05f3d439b9423d63aa9 (patch)
tree4a614ac65f307b55f5719cc9496b703ca4147608 /elf/dl-init.c
parent758cb061078ffcd3435cdcd69efe289e6e97d3a7 (diff)
downloadglibc-7688db9129490d0f31f4e05f3d439b9423d63aa9.tar.gz
glibc-7688db9129490d0f31f4e05f3d439b9423d63aa9.tar.xz
glibc-7688db9129490d0f31f4e05f3d439b9423d63aa9.zip
Update.
	* elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of
	with size of dynamic sectionfunction.
	* sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.

	* misc/sys/cdefs.h: Don't allow gcc in traditional mode to be
	with size of dynamic sectionused.
Diffstat (limited to 'elf/dl-init.c')
-rw-r--r--elf/dl-init.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/elf/dl-init.c b/elf/dl-init.c
index 2c1c24ca54..911e089912 100644
--- a/elf/dl-init.c
+++ b/elf/dl-init.c
@@ -24,6 +24,9 @@
 /* Type of the initializer.  */
 typedef void (*init_t) (int, char **, char **);
 
+/* Flag, nonzero during startup phase.  */
+extern int _dl_starting_up;
+
 
 void
 internal_function
@@ -127,4 +130,7 @@ _dl_init (struct link_map *main_map, int argc, char **argv, char **env)
   /* Notify the debugger all new objects are now ready to go.  */
   r->r_state = RT_CONSISTENT;
   _dl_debug_state ();
+
+  /* Finished starting up.  */
+  _dl_starting_up = 0;
 }