how to determine compiler version from an object file

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Fri Jun 2 16:13:00 GMT 2000


> Is there a way of determining what version of gcc (e.g.
> 2.8 or 2.95.2) was used to compile a given object file?

Try 'strings - obj|grep GCC'. For recent gcc versions, you'll get the
exact release that way, by means of an .ident assembler statement - at
least on i586-pc-linux-gnu.

Regards,
Martin


More information about the Gcc-help mailing list