Welcome

Troves being gleaned while surfing on the Internet mostly about computer/IT/system skills and tricks, Welcome here ...
Powered By Blogger

Disclaimer

This blog is written by the owner with real practices and tests and intended to hold all original posts except there is a clear declaration for referencing from others. Thanks for tagging with the source link or other tips for reference from here if you would like to quote partial or full text from posts in this blog.

Friday, August 19, 2011

how to retrieve the info of the compiler having built an ELF executable

Sometime there happens to be a need for retrieving what is the compilation information, compiler version, say, of the compiler that was previously used for building an ELF executable.

There are two ways, no matter whether they are the real good ones.

1) objdump -s --section .comment  <the executable>

2) strings -a <the executable> | grep -i -E "gcc|cl| $other possible clue for the compiler name"