[PATCH] enabling gprof for cross builds

Ben Elliston bje@au1.ibm.com
Thu Apr 12 04:08:00 GMT 2007


On Mon, 2007-04-09 at 13:45 -0400, Sanjay Chadha wrote:

> [schadha@devjava1-fc4 binutils-2.15.91.0.2]$ ./configure
> --target=mipsel-linux --host==mipsel-linux
> [schadha@devjava1-fc4 binutils-2.15.91.0.2]$ make
> 
> However the compiled gprof was compiled for the host (i386) machine. Any
> ideas of what other changes may be required to cross compile gprof for
> the mips machine.

gprof runs on the host, not on the target (but it reads target object
code, of course).  In your configure command line above, I see you used
==, not =.  Perhaps that is your problem.

Ben




More information about the Binutils mailing list