This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] enabling gprof for cross builds


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]