From: Ulrich Drepper Date: Sat, 11 Aug 2001 08:54:29 +0000 (+0000) Subject: (elf_machine_runtime_setup): Only set _dl_profile_map for the right object. X-Git-Tag: glibc-2.16-ports-before-merge~1825 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=17f56d2f9c5893afc919e9a7666962cdfc99354a;p=thirdparty%2Fglibc.git (elf_machine_runtime_setup): Only set _dl_profile_map for the right object. --- diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h index ba515ebec4b..24fe3667842 100644 --- a/sysdeps/arm/dl-machine.h +++ b/sysdeps/arm/dl-machine.h @@ -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