Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to enable gcov for embed cross compilers?

242 views
Skip to first unread message

jetcube

unread,
Nov 5, 2009, 3:57:28 PM11/5/09
to
I've built gcc 4.3.3 as a cross compiler for the psp (mips allegrex)
and out of the box it builds gcov. I can compile with -fprofile-arcs -
ftest-coverage and it instruments the code and links to the libgcov.a
without any erros, i put the generated elf into the psp and run it but
no .gcda file is generated. I looked into what libgcov.a contains and
used objdump to see what is the source of the _gcov.o file and this is
it:

psp-objdump -S _gcov.o

_gcov.o: file format elf32-littlemips

Disassembly of section .text:

00000000 <__gcov_init>:
0: 03e00008 jr ra
4: 00000000 nop

00000008 <__gcov_flush>:
8: 03e00008 jr ra
c: 00000000 nop


How can i force libgcov.a to be build with valid code?

karthikbalaguru

unread,
Dec 9, 2009, 9:23:06 AM12/9/09
to

Were you able to generate the libgcov.a file ?
Can you pls tell how you were able to resolve this
problem ?
I am also looking for the same file to be generated,
but w.r.t MIPS environment.

Thx in advans,
Karthik Balaguru

0 new messages