0

I have a 3rd party library : lib3rdPartylib.so.It is possible to check with what version of gcc has been this library compiled?

Thank you.

silver77
  • 1
  • 1
  • 2
  • 1
    possible duplicate of [How to retrieve the GCC version used to compile a given ELF executable?](http://stackoverflow.com/questions/2387040/how-to-retrieve-the-gcc-version-used-to-compile-a-given-elf-executable) – P Shved Jul 21 '10 at 06:38
  • By running the " readelf -Wa lib3rdPartylib.so | grep 'GCC[[:alnum:]_.]*' --only-match | sort | uniq | tail " I can see GCC_3.0. Thank you for the solution! – silver77 Jul 21 '10 at 07:46

1 Answers1

1

Try objdump to see comment section:

objdump -s -j .comment lib3rdPartylib.so
Nadir SOUALEM
  • 3,451
  • 2
  • 23
  • 30