Shuduo, this error typically occurs when there is a mismatch between the
version of the compiler and gcov.  The cross compilation may be contributing
to this problem.

Would you send version/arch info for the gcc and gcov you're using.

Thanks.


ltp-coverage-admin@lists.sourceforge.net wrote on 04/13/2005 03:40:11 PM:

> Hi there,
>
> I want to port gcov-kernel to a ppc-7457/sandpoint box now.
>
> Following is my procedure:
> I apply gcov-2.4.20.patch to kernel.
> Build it by cross compiler.
> Boot up and login.
> Insmod gcov-proc.o.
>
> I can see /proc/gcov and all .bb .bbg .da files.
>
> But when I run 'gcov /proc/gcov/kernel /proc/gcov/kernel/sched.c'
> as official document, it outputs '.da file corrupt'.
>
> I read gcc source code and found that gcov decide which .da file is
>  valid by detecting magic-number is -123.
> I pick related detecting code to a file and compile it to
>  an utility to read magic-number. But all .da file show
> other odd magic number.
>
> Anyone has applied gcov-kernel on any ppc box before?
> Thanks.
>
>
> --
> Shuduo Sang <ssang@ch.mvista.com>
> MontaVista Beijing R&D Center
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Ltp-coverage mailing list
> Ltp-coverage@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-coverage