"Aaron Chen" <AaronC@xxxxxxxxxxxxxxxx> writes: > The steps to reproduce the error: > 1.mips_lexra_fp_be-gcc -c -pg -g test.c > 2.mips_lexra_fp_be-gcc -pg -o test test.o > > Then get the following error messages: > ###### > /projects/mips/lexra_fp_be/bin/../target/usr/lib/gcrt1.o: In function `__gmon_start__': > gmon-start.c(.text+0xb8): undefined reference to `_start' > collect2: ld returned 1 exit status > ####### In general profiling requires library support. gcc will do its best to set up the profiling call, but if you don't have the right support in the library and the OS it will fail. In particular the gcrt1.o file did not come from gcc. Sorry I can't be more helpful. Ian