I\'d like to retrieve the GCC version used to compile a given executable. I tried readelf but didn\'t get the information. Any thoughts?
readelf
You can use the elfinfo utility. This also supports detecting the compiler versions of Go and FPC, in addition to GCC.