Generating Code for profiling with GCC

Josef.Rosenegger@sz.com Josef.Rosenegger@sz.com
Tue Aug 6 22:51:00 GMT 2002


Hi all,

I currently try to generate code for the GNU profiling tools
(gcov, gprof, tcov).

I've a problem, while instrumenting my code with the '__bb_init_func'
call, coming from the GCC option '-fprofile-arcs'.

Errormessage:

bootloader.cf.pro.o: In function `global constructors keyed to mbarGCOV':
bootloader.cf.pro.o(.text+0x1c18): undefined reference to `__bb_init_func'

I found the __bb_init_func in the file libgcc2.c, but I found neither
the libgcc2.a nor the __bb_init_func in another lib.

Do I need any special options for building the GNU tools for profiling?

I currently rebuilt my GNU tools. I only used the option
'--target=m68k-elf'.

I'm working on a UNIX Solaris 2.6 system.

GNU tools versions are:

binutils-2.9.1
gcc-2.95.2
newlib-1.8.2

For building the tools, I'm using the One Pass Installation and the
'build-cross.sh' script.


Thanks for any hints

best regards

Josef


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list