This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: how to determine compiler version from an object file
- To: pkurpis at keck dot hawaii dot edu
- Subject: Re: how to determine compiler version from an object file
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Sat, 3 Jun 2000 01:07:46 +0200
- CC: help-gcc at gnu dot org, pkurpis at keck dot hawaii dot edu
- References: <200006022149.LAA15400@kalani.keck.hawaii.edu>
> 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