From 7f81ac7007af8fc146f1a61414bfd1cefdd449a2 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 17 May 2001 19:31:03 +0000 Subject: Update. 2001-05-17 Ulrich Drepper * elf/dl-profile.c (_dl_mcount): Check whether state is GMON_PROF_ON before doing anything. --- elf/dl-profile.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'elf/dl-profile.c') 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 -- cgit v1.2.3