[reply] [-] Description Han Shen 2015-06-26 17:06:10 CDT
Current ARM bpapi (Base Platform Application Binary Interface) no longer uses "mcount" as function profiler name, instead it uses "__gnu_mcount_nc".
(Refer to trunk gcc - gcc/config/arm/bpapi.h ARM_FUNCTION_PROFILER.)
Also checking the system libc.so, __gnu_mcount_nc is properly defined. Notwithstanding the fact that "_mcount" and "mcount" are defined in libc.so, they are not the default-version symbol, to link against these symbols, a version script file has to be provided to the linker, otherwise we get an undefined symbol error.
May I suggest override this value in ARMTaretInfo as -
this->MCountName = "__gnu_mcount_nc";
Comment 1 by llozano@chromium.org
, Oct 7 2016