nivas
Newbie level 5
Hi,
I am trying to build a cross compiler targeting a MIPS (or whatever) for a linux-i386 host. I have managed to build a working toolchain (gcc, binutils, newlib, gdb) but i have a problem with the profiling tools. Specifically, when i am compiling program with -pg to enable profiling a link error is produced because the linker finds an udefined reference to _mcount. A similar error is produced when i want to link a program compiled for gcov. I have build gprof correctly but this does not seem to change the situation.
Any help????
Thanks!!
I am trying to build a cross compiler targeting a MIPS (or whatever) for a linux-i386 host. I have managed to build a working toolchain (gcc, binutils, newlib, gdb) but i have a problem with the profiling tools. Specifically, when i am compiling program with -pg to enable profiling a link error is produced because the linker finds an udefined reference to _mcount. A similar error is produced when i want to link a program compiled for gcov. I have build gprof correctly but this does not seem to change the situation.
Any help????
Thanks!!