Inspect a Binary Executable for Which Version of GCC Used to Compile It
30 Sep 2019 Tools tipscompilerGCC has its version written in the .comment section of the executable binaries as shown by commands:
objdump -s --section .comment /path/to/binary
# or pretty print
readelf -p .comment /path/to/binary
Credits
- Can we get compiler information from an elf binary? - Thank Michael Mrozek for the answer.
