This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: how to determine compiler version from an object file


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]