]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Thu, 17 May 2001 19:31:03 +0000 (19:31 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 17 May 2001 19:31:03 +0000 (19:31 +0000)
2001-05-17  Ulrich Drepper  <drepper@redhat.com>

* elf/dl-profile.c (_dl_mcount): Check whether state is
GMON_PROF_ON before doing anything.

ChangeLog
elf/dl-profile.c

index 6fa95fa42596848198015ea36ffa91caa4401849..4bd53ca5cc8104aaa8256c2bb52acaff3de5ca8a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index f1479dea3f76176aa50b636fe9c36938bc905e30..067a32d3521641a3cc6e63a65c4aab053ab06c4b 100644 (file)
@@ -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
This page took 0.051511 seconds and 5 git commands to generate.