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