title: gprof error: profile file has unsupported version
body: <p>I am trying to profile a shared library but there is an error when I invoke gprof:</p>
  
  <pre>
      $ export LD_PROFILE=libMy.so
      $ ./a.out
      $ gprof -q libMy.so /var/tmp/libMy.so.profile
      gprof: file /var/tmp/libMy.so.profile has unsupported version 131071
  </pre>
  
  <p>Shared library was compiled with -ggdb -pg flags.</p>
  
  <p>gcc version 4.2.1, gprof version 2.20, linux 2.6.22</p>
  
  <p>Any ideas what the problem is?</p>