about summary refs log tree commit diff
path: root/sysdeps/generic/machine-gmon.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/machine-gmon.h')
-rw-r--r--sysdeps/generic/machine-gmon.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/generic/machine-gmon.h b/sysdeps/generic/machine-gmon.h
index 24101f34f0..3c6fb68cfd 100644
--- a/sysdeps/generic/machine-gmon.h
+++ b/sysdeps/generic/machine-gmon.h
@@ -42,3 +42,7 @@ void _mcount (void)							      \
   mcount_internal ((u_long) __builtin_return_address (0),		      \
 		   (u_long) __builtin_return_address (1));		      \
 }
+
+#ifdef NO_UNDERSCORES
+weak_alias (_mcount, mcount)
+#endif