]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Mon, 4 Feb 2002 08:38:52 +0000 (08:38 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 4 Feb 2002 08:38:52 +0000 (08:38 +0000)
2002-02-04  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
dl_cpuclock_offset initialization to _dl_start_final.
(_dl_show_auxv): Avoid unnecessary sign extension.
* elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.

ChangeLog
elf/rtld.c
sysdeps/generic/dl-sysdep.c
sysdeps/i386/elf/configure.in

index fb8851b6044b9ee1e45661acdfe2cd87d4b7f5f0..f6c2bac197c0b27135b512b11d0632d2aaf297ff 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2002-02-04  Ulrich Drepper  <drepper@redhat.com>
+
+       * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
+       dl_cpuclock_offset initialization to _dl_start_final.
+       (_dl_show_auxv): Avoid unnecessary sign extension.
+       * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
+
 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
 
        * config.h.in: Add HAVE_TLS_SUPPORT.
index b49d11026700aca29a0d7b8c6454b09c73ad4ff8..e2360e3ae10a388e521462e9276bba941557900e 100644 (file)
@@ -96,8 +96,7 @@ asm (".protected _rtld_global");
 #endif
 
 
-static void dl_main (const ElfW(Phdr) *phdr,
-                    ElfW(Word) phnum,
+static void dl_main (const ElfW(Phdr) *phdr, ElfW(Word) phnum,
                     ElfW(Addr) *user_entry);
 
 static struct libname_list _dl_rtld_libname;
@@ -241,6 +240,10 @@ _dl_start_final (void *arg, struct link_map *bootstrap_map_p,
   GL(dl_rtld_map).l_map_start = (ElfW(Addr)) _begin;
   GL(dl_rtld_map).l_map_end = (ElfW(Addr)) _end;
 
+#if HP_TIMING_AVAIL
+  HP_TIMING_NOW (GL(dl_cpuclock_offset));
+#endif
+
   /* Call the OS-dependent function to set up life so we can do things like
      file access.  It will call `dl_main' (below) to do all the real work
      of the dynamic linker, and then unwind our frame and run the user
index 79816eeb8cbc236f04fe2f4f04bd1f17ea66faa1..64cfd47bef8f2bf5e2810c13a21db537e7244e31 100644 (file)
@@ -89,10 +89,6 @@ _dl_sysdep_start (void **start_argptr,
 # define set_seen(tag) seen |= M ((tag)->a_type)
 #endif
 
-#if HP_TIMING_AVAIL
-  HP_TIMING_NOW (GL(dl_cpuclock_offset));
-#endif
-
   DL_FIND_ARG_COMPONENTS (start_argptr, _dl_argc, _dl_argv, _environ,
                          _dl_auxv);
 
@@ -258,9 +254,11 @@ _dl_show_auxv (void)
              const char *val = av->a_un.a_ptr;
 
              if (__builtin_expect (auxvars[idx].form, dec) == dec)
-               val = _itoa (av->a_un.a_val, buf + sizeof buf - 1, 10, 0);
+               val = _itoa ((unsigned long int) av->a_un.a_val,
+                            buf + sizeof buf - 1, 10, 0);
              else if (__builtin_expect (auxvars[idx].form, hex) == hex)
-               val = _itoa (av->a_un.a_val, buf + sizeof buf - 1, 16, 0);
+               val = _itoa ((unsigned long int) av->a_un.a_val,
+                            buf + sizeof buf - 1, 16, 0);
 
              _dl_printf ("%s%s\n", auxvars[idx].label, val);
            }
index d7e17045403a9266a51340b4967f23fb7356b7d8..6352e69aa3155254f00fa6f1579e14d89be7c4f2 100644 (file)
@@ -7,9 +7,11 @@ GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
 AC_CACHE_CHECK(for i386 TLS support, libc_cv_386_tls, [dnl
 cat > conftest.s <<\EOF
        .section ".tdata", "awT", @progbits
+       .globl foo
 foo:   .long   1
        .section ".tbss", "awT", @nobits
-       .comm   bar,4,4
+       .globl bar
+bar:   .skip   4
        .text
 baz:   leal    bar@TLSLDM(%ebx), %eax
        leal    bar@DTPOFF(%eax), %edx