This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Fail to compile file with profile for mips system using cross-compiling
- From: Ian Lance Taylor <ian at airs dot com>
- To: "Aaron Chen" <AaronC at tridentmicro dot com>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: 29 Sep 2005 10:52:18 -0700
- Subject: Re: Fail to compile file with profile for mips system using cross-compiling
- References: <C9F5BF5D78087146A4AB362E9A2BFE194F7E79@trid-exch.tridentmicro.com>
"Aaron Chen" <AaronC@tridentmicro.com> 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