(__elf_machine_runtime_setup): Handle shared library profiling.
authordrepper <drepper>
Sun, 25 Jul 1999 22:55:46 +0000 (22:55 +0000)
committerdrepper <drepper>
Sun, 25 Jul 1999 22:55:46 +0000 (22:55 +0000)
sysdeps/powerpc/dl-machine.c

index cf918fa..9e158c9 100644 (file)
@@ -176,6 +176,11 @@ __elf_machine_runtime_setup (struct link_map *map, int lazy, int profile)
                                  ? _dl_prof_resolve
                                  : _dl_runtime_resolve);
 
+      if (profile && _dl_name_match_p (_dl_profile, map))
+       /* This is the object we are looking for.  Say that we really
+          want profiling and the timers are started.  */
+       _dl_profile_map = map;
+
       if (lazy)
        for (i = 0; i < num_plt_entries; i++)
        {