How to retrieve the GCC version used to compile a given ELF executable?
It is normally stored in the comment section strings -a <binary/library> |grep “GCC: (” returns GCC: (GNU) X.X.X strip -R .comment <binary> strings -a <binary/library> |grep “GCC: (” returns no output It is not uncommon to strip the .comment (as well as .note) section out to reduce size via strip –strip-all -R .note -R .comment … Read more