This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: recognizing gcc compiled objects
- To: gcc at gcc dot gnu dot org
- Subject: Re: recognizing gcc compiled objects
- From: Jakub Jelinek <jakub at redhat dot com>
- Date: Tue, 24 Oct 2000 23:04:03 +0200
- References: <20001024110632.J18806@neel.smcc.Eng.Sun.COM>
- Reply-To: Jakub Jelinek <jakub at redhat dot com>
On Tue, Oct 24, 2000 at 11:06:33AM -0700, Neelakanth wrote:
>
> Hi,
> is there a fail-proof way of recognizing that an object is compiled
> by gcc?
No, but it is very common gcc compiled ELF objects contain the .comment
section with gcc version in it (gcc often emits .ident with gcc version into
assembly) and strip without special options keeps it in.
Jakub