[PATCH COMMITTED] nios2: fix -pg static link problem
Chung-Lin Tang
cltang@codesourcery.com
Thu Feb 5 14:28:00 GMT 2015
There was a typo error in sysdeps/nios2/machine-gmon.h, a missing
leading "__" which of course causes linking with '-static -pg to fail.
Patch committed.
Chung-Lin
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.
-------------- next part --------------
diff --git a/sysdeps/nios2/machine-gmon.h b/sysdeps/nios2/machine-gmon.h
index 1f0ea8f..039d253 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 \
More information about the Libc-alpha
mailing list