Re: object file

From: E. Robert Tisdale (E.Robert.Tisdale_at_jpl.nasa.gov)
Date: 03/16/05


Date: Tue, 15 Mar 2005 20:43:04 -0800

Rick wrote:

> I have an Linux object file, for example, foobar.o.
> Can I know which version of gcc build it?

> cat foobar.cc
         void foobar(void) {
           }

> g++ -Wall -ansi -pedantic -c foobar.cc
> strings -a foobar.o
         GCC: (GNU) 3.4.1
         .symtab
         .strtab
         .shstrtab
         .text
         .data
         .bss
         .note.GNU-stack
         .comment
         foobar.cc
         _Z6foobarv