title: gcov instrumented shared object referencing __gcov_init hidden symbol
body: <p>I have a  main linux executable and that executable is using some functions from a dynamic shared object. When I instrument the shared object and try also to instrument and compile the main executable it gives me a error like in bellow.</p>
  
  <p>hidden symbol: <code>__gcov_init</code> in /usr/lib/gcc/x86_64-linux-gnu/4.8/libgcov/libgcov.a(_gcov.o) is referenced by DSO.</p>
  
  <p>My question is,</p>
  
  <p>[1] Is this happen exactly due to the shared library is referencing back to main  executable ? or static object libgcov.a ?</p>
  
  <p>[2] How can I overcome this issue ? In windows there is no way that shared object reference back to main executable, but in linux this is happening.</p>