public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* how to determine compiler version from an object file
@ 2000-06-02 14:49 Peter Kurpis
  2000-06-02 16:13 ` Martin v. Loewis
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Kurpis @ 2000-06-02 14:49 UTC (permalink / raw)
  To: help-gcc; +Cc: pkurpis

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?

(N.B.  I am not asking for  gcc --version .  I am asking
how to figure out what version compiler  a.out  was
compiled with.)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: how to determine compiler version from an object file
  2000-06-02 14:49 how to determine compiler version from an object file Peter Kurpis
@ 2000-06-02 16:13 ` Martin v. Loewis
  0 siblings, 0 replies; 2+ messages in thread
From: Martin v. Loewis @ 2000-06-02 16:13 UTC (permalink / raw)
  To: pkurpis; +Cc: help-gcc, pkurpis

> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-06-02 16:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-02 14:49 how to determine compiler version from an object file Peter Kurpis
2000-06-02 16:13 ` Martin v. Loewis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).