about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/nios2/machine-gmon.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 50e81535e3..d2051e2832 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
+
+	* sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
+	called function in non-PIC case.
+
 2015-01-31  David S. Miller  <davem@davemloft.net>
 
 	* sysdeps/sparc/sparc32/bits/atomic.h
diff --git a/sysdeps/nios2/machine-gmon.h b/sysdeps/nios2/machine-gmon.h
index 1f0ea8ff70..039d25367e 100644
--- a/sysdeps/nios2/machine-gmon.h
+++ b/sysdeps/nios2/machine-gmon.h
@@ -35,7 +35,7 @@ static void __attribute_used__ __mcount_internal (u_long frompc, u_long selfpc)
   "callr r2\n\t"
 #else
 #define NIOS2_MCOUNT_CALL			\
-  "call\tmcount_internal\n\t"
+  "call\t__mcount_internal\n\t"
 #endif
 
 #define MCOUNT						\