about summary refs log tree commit diff
path: root/sysdeps/generic/dl-sysdep.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-02-04 08:38:52 +0000
committerUlrich Drepper <drepper@redhat.com>2002-02-04 08:38:52 +0000
commit67ddea92542c12f2099a89dbc58a045a65bb7771 (patch)
tree202823f6ce59a8115367fb711da7317b09ce3ec0 /sysdeps/generic/dl-sysdep.c
parente23f8d206d85154a99c3f91d58a35227a279c479 (diff)
downloadglibc-67ddea92542c12f2099a89dbc58a045a65bb7771.tar.gz
glibc-67ddea92542c12f2099a89dbc58a045a65bb7771.tar.xz
glibc-67ddea92542c12f2099a89dbc58a045a65bb7771.zip
Update.
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.
Diffstat (limited to 'sysdeps/generic/dl-sysdep.c')
-rw-r--r--sysdeps/generic/dl-sysdep.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sysdeps/generic/dl-sysdep.c b/sysdeps/generic/dl-sysdep.c
index 79816eeb8c..64cfd47bef 100644
--- a/sysdeps/generic/dl-sysdep.c
+++ b/sysdeps/generic/dl-sysdep.c
@@ -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);
 	    }