title: gcov final link failed
body: <p>While compiling my project with gcov support I am facing the below error</p>
  
  <p>Following are flags information i have while compiling</p>
  
  <p>compiler flags:</p>
  
  <pre><code>CXXFLAGS="-Wno-deprecated -g -ggdb -fprofile-arcs -ftest-coverage -fPIC"
  </code></pre>
  
  <p>linker options:</p>
  
  <pre><code>LINK_CMD="gcc -fprofile-arcs -fPIC"
  </code></pre>
  
  <p>Following are version information:</p>
  
  <p>gcc version:</p>
  
  <blockquote>
    <p>gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)</p>
  </blockquote>
  
  <p>gcov version:</p>
  
  <blockquote>
    <p>gcov (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44)</p>
  </blockquote>
  
  <p>error:</p>
  
  <blockquote>
    <p>hidden symbol `__gcov_init' in /usr/lib/gcc/x86_64-redhat-linux/4.1.2/libgcov.a(_gcov.o) is referenced by DSO
    /usr/bin/ld: final link failed: Nonrepresentable section on output
    collect2: ld returned 1 exit status</p>
  </blockquote>
  
  <p>Could you please help me to get away from this problem?</p>