(elf_machine_runtime_setup): Only set _dl_profile_map for the right object.

This commit is contained in:
Ulrich Drepper 2001-08-11 08:54:29 +00:00
parent a4f1359e63
commit 17f56d2f9c
1 changed files with 5 additions and 2 deletions

View File

@ -103,8 +103,11 @@ elf_machine_runtime_setup (struct link_map *l, int lazy, int profile)
if (profile)
{
got[2] = (Elf32_Addr) &_dl_runtime_profile;
/* Say that we really want profiling and the timers are started. */
_dl_profile_map = l;
if (_dl_name_match_p (_dl_profile, l))
/* Say that we really want profiling and the timers are
started. */
_dl_profile_map = l;
}
else
/* This function will get called to fix up the GOT entry indicated by