aboutsummaryrefslogtreecommitdiff
path: root/elf
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 /elf
parente23f8d206d85154a99c3f91d58a35227a279c479 (diff)
downloadglibc-67ddea92542c12f2099a89dbc58a045a65bb7771.tar
glibc-67ddea92542c12f2099a89dbc58a045a65bb7771.tar.gz
glibc-67ddea92542c12f2099a89dbc58a045a65bb7771.tar.bz2
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 'elf')
-rw-r--r--elf/rtld.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/elf/rtld.c b/elf/rtld.c
index b49d110267..e2360e3ae1 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -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