Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
2001-05-17  Ulrich Drepper  <drepper@redhat.com>

	* elf/dl-profile.c (_dl_mcount): Check whether state is
	GMON_PROF_ON before doing anything.
  • Loading branch information
Ulrich Drepper committed May 17, 2001
1 parent 8d88a16 commit 7f81ac7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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>

* elf/sprof.c (read_symbols): Move "++symtab" into the while loop.
Expand Down
3 changes: 3 additions & 0 deletions elf/dl-profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,9 @@ _dl_mcount (ElfW(Addr) frompc, ElfW(Addr) selfpc)
/* XXX I think this is now not necessary anymore. */
if (! compare_and_swap (&state, GMON_PROF_ON, GMON_PROF_BUSY))
return;
#else
if (state != GMON_PROF_ON)
return;
#endif

/* Compute relative addresses. The shared object can be loaded at
Expand Down

0 comments on commit 7f81ac7

Please sign in to comment.