[COMMITTED] nios2: fix -pg static link problem
Commit Message
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.
Comments
On 02/05/2015 09:28 AM, Chung-Lin Tang wrote:
> 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.
>
Thanks.
Cheers,
Carlos.
@@ -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 \