[PATCH] enabling gprof for cross builds

Sanjay Chadha sanjay@s5systems.com
Mon Apr 9 17:46:00 GMT 2007


I have a question regarding cross compiling gprof. There was a patch
which removed from gprof from native_only list.

-native_only="autoconf automake libtool fileutils find gawk gettext gzip
hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff
gprof target-groff guile perl time ash bash bzip2 prms gnuserv
target-gperf"
+native_only="autoconf automake libtool fileutils find gawk gettext gzip
hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff
target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
 
I am not sure if above change alone will make gprof cross compile (and
link). gprof uses libbfd.a which is compiled as a host_libs hence there
would be a mismatch between gprof and libbfd.a. To circumvent this I
gave the following command (so both host and target are the target mips
platform)
 
[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.

Regards,
    Sanjay
 
S5 Systems - providing custom embedded engineering services   
Direct:  (613) 226-4764 
Mobile: (613) 355-9298



More information about the Binutils mailing list