How to retrieve the GCC version used to compile a given ELF executable?

后端 未结 5 663
北恋
北恋 2020-11-27 10:28

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?

5条回答
  •  -上瘾入骨i
    2020-11-27 11:05

    You can use the elfinfo utility. This also supports detecting the compiler versions of Go and FPC, in addition to GCC.

提交回复
热议问题