2001-05-17  Ulrich Drepper  <drepper@redhat.com>

	* elf/dl-profile.c (_dl_mcount): Check whether state is
	GMON_PROF_ON before doing anything.
This commit is contained in:
Ulrich Drepper 2001-05-17 19:31:03 +00:00
parent 8d88a16405
commit 7f81ac7007
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2001-05-17 Ulrich Drepper <drepper@redhat.com>
* elf/dl-profile.c (_dl_mcount): Check whether state is
GMON_PROF_ON before doing anything.
2001-05-17 H.J. Lu <hjl@gnu.org> 2001-05-17 H.J. Lu <hjl@gnu.org>
* elf/sprof.c (read_symbols): Move "++symtab" into the while loop. * elf/sprof.c (read_symbols): Move "++symtab" into the while loop.

View File

@ -439,6 +439,9 @@ _dl_mcount (ElfW(Addr) frompc, ElfW(Addr) selfpc)
/* XXX I think this is now not necessary anymore. */ /* XXX I think this is now not necessary anymore. */
if (! compare_and_swap (&state, GMON_PROF_ON, GMON_PROF_BUSY)) if (! compare_and_swap (&state, GMON_PROF_ON, GMON_PROF_BUSY))
return; return;
#else
if (state != GMON_PROF_ON)
return;
#endif #endif
/* Compute relative addresses. The shared object can be loaded at /* Compute relative addresses. The shared object can be loaded at