aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-profile.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-05-17 19:31:03 +0000
committerUlrich Drepper <drepper@redhat.com>2001-05-17 19:31:03 +0000
commit7f81ac7007af8fc146f1a61414bfd1cefdd449a2 (patch)
tree260bc97f3817d8b8af8ae2c673c78a117794975f /elf/dl-profile.c
parent8d88a1640560d5b26c8119f7a763b4c0607eec56 (diff)
downloadglibc-7f81ac7007af8fc146f1a61414bfd1cefdd449a2.tar
glibc-7f81ac7007af8fc146f1a61414bfd1cefdd449a2.tar.gz
glibc-7f81ac7007af8fc146f1a61414bfd1cefdd449a2.tar.bz2
glibc-7f81ac7007af8fc146f1a61414bfd1cefdd449a2.zip
Update.
2001-05-17 Ulrich Drepper <drepper@redhat.com> * elf/dl-profile.c (_dl_mcount): Check whether state is GMON_PROF_ON before doing anything.
Diffstat (limited to 'elf/dl-profile.c')
-rw-r--r--elf/dl-profile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/elf/dl-profile.c b/elf/dl-profile.c
index f1479dea3f..067a32d352 100644
--- a/elf/dl-profile.c
+++ b/elf/dl-profile.c
@@ -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