[PATCH] enabling gprof for cross builds

Nick Clifton nickc@redhat.com
Fri Apr 20 14:28:00 GMT 2007


Hi Danny,

> I have a patch that allows you to specify a different directory than the
> host source directory.
> 
> That means :
> - you compile on a PC, sources in e.g. /home/danny/src/prog.c
> - by default, gcc compiles in a path /home/danny/src in which the
>   executable will try to store its profile information
> - that is not always present on the mobile device
> - there is a way to change this directory at run time, but that
>   isn't always easy (it isn't on CE)
> - so I've added a way to specify a different directory at compile
>   time, meaning I can override the directory that gcc puts in the
>   object file
> 
> I've been wanting to submit the code but didn't get around to it yet.
> 
> Should I clean it up and submit ?

This does sound interesting, but isn't this a patch to gcc rather than 
to gprof ?  If so then it should be submitted to the gcc-patches list 
rather than the binutils list.  Either way though, cleaning it up and 
submitting it would be a good thing to do.

Cheers
   Nick



More information about the Binutils mailing list