]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Sat, 1 Apr 2000 17:43:53 +0000 (17:43 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 1 Apr 2000 17:43:53 +0000 (17:43 +0000)
2000-04-01  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/init-first.c (init): Add code from
former init-first.h.  Initialize __libc_multiple_libcs.

ChangeLog
sysdeps/unix/sysv/linux/init-first.c

index 1fde5ec463d060d50f379a7cc34dfe2dca6a1b78..92a8849cfe2ba6dad7f5bfb39f3b3871e6fead8d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-04-01  Ulrich Drepper  <drepper@redhat.com>
+
+       * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
+       former init-first.h.  Initialize __libc_multiple_libcs.
+
 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
 
        * iconv/skeleton.c: Define access macros with u suffix.  Adjust
index 94d2749be7304649bed33da8ccb3eb675388bdcd..9f58d9cdbe9668adcaa50d1a249592ca12708267 100644 (file)
@@ -58,6 +58,12 @@ static void
 init (int argc, char **argv, char **envp)
 {
   extern void __getopt_clean_environment (char **);
+  /* The next variable is only here to work around a bug in gcc <= 2.7.2.2.
+     If the address would be taken inside the expression the optimizer
+     would try to be too smart and throws it away.  Grrr.  */
+  int *dummy_addr = &_dl_starting_up;
+
+  __libc_multiple_libcs = dummy_addr && !_dl_starting_up;
 
   /* Make sure we don't initialize twice.  */
   if (!__libc_multiple_libcs)
This page took 0.051633 seconds and 5 git commands to generate.