This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: gcov unable to dump coverage of shared library
- From: 2008 <ramrao dot gd at gmail dot com>
- To: binutils at sourceware dot org
- Date: Thu, 15 Oct 2009 09:28:30 -0700 (PDT)
- Subject: Re: gcov unable to dump coverage of shared library
- References: <817e83210805230441u64925192i4848df59c8e222b@mail.gmail.com>
Hi Aditya,
I am aslo having same scenario. Gcov is not generating *gcno and *.gcda upon
compilation.
Any hints?
Thanks,
Ram
aditya tiwari wrote:
>
> Opps ,
>
> It seams that gcov has some issues to dump coverage of shared libraries.
>
> I compiled using following ....
>
> gcc -rdynamic -fPIC -fprofile-arcs -ftest-coverage -c -o shared.o
> shared.c
> ld -shared shared.o /usr/lib/gcc/x86_64-redhat-linux/4.1.1/libgcov.a
> /usr/lib/x86_64-redhat-linux3E/lib64/libc.so -o shared.so
>
> but no shared.gcda was generated for the shared.c
> and got coverage information only for main binary only to which
> shared.so was linked.
>
> Can some one please suggest how to do code coverage for shared libraries.
>
> regards
> aditya
>
>
--
View this message in context: http://www.nabble.com/gcov-unable-to-dump-coverage-of-shared-library-tp17423886p25911806.html
Sent from the Sourceware - binutils list mailing list archive at Nabble.com.