[dev] Bug in toolchain (based on gcc4.9.2)

From: Kuniyasu Suzaki <k.suzaki_AT_aist.go.jp>
Date: Thu, 25 Aug 2016 23:39:48 +0900

Dear,

I confirmed that the current toolchain "x86_64-linux-musl-gcc (gcc4.9.2)" cannot treat "--coverage" option.
It generate the following error messages.

undefined reference to `__gcov_indirect_call_profiler_v2'
undefined reference to `__gcov_indirect_call_callee'
undefined reference to `__gcov_time_profiler'

They are caused by "libgcov.a" with single "_" symbols. I checked the symbol table with "nm" command and found the followings.

_gcov_indirect_call_profiler_v2
_gcov_indirect_call_callee
_gcov_time_profiler

They must be double underscores "__". Can you fix the problem?

P.S.
I confirm the (next?) toolchain downloaded from the following site worked well.
  http://git.sta.li/toolchain/commit/?id=6582ce3c11aee57fc83e502d5595c28f949fe98d
  http://git.sta.li/toolchain/snapshot/toolchain-6582ce3c11aee57fc83e502d5595c28f949fe98d.zip
The toolchain is based on gcc5.3.0.

Thank you.

-------
  Kuniyasu Suzaki, National Institute of Advanced Industrial Science and Technology,
  http://staff.aist.go.jp/k.suzaki
Received on Thu Aug 25 2016 - 16:39:48 CEST

This archive was generated by hypermail 2.3.0 : Thu Aug 25 2016 - 16:48:12 CEST