RE: Given an object/executable how to identify the compiler used tocompile it.



Thank you for your immediate attention.

I see the the following when I tried on one of the machines=>

%strings -a {programName} | grep GCC
...
GCC: (GNU) 3.2.2 (SuSE Linux)
GCC: (GNU) 3.2.2 (SuSE Linux)
GCC: (GNU) 3.2.2 (SuSE Linux)
GCC: (GNU) 3.2.2 (SuSE Linux)
GCC: (GNU) 3.2.2 (SuSE Linux)
GCC: (GNU) 3.3.1 (SuSE Linux)
GCC: (GNU) 3.3.1 (SuSE Linux)
GCC: (GNU) 3.3.1 (SuSE Linux)
GCC: (GNU) 3.3.1 (SuSE Linux)
...
It is strange because I have Centos 4.2, Shouldn't it be showing RedHat ?
instead of SuSE ?

And why do I see differenence in the minor version numbers.

Thank you for anyfeed back,
-AK





redhat-list-bounces@xxxxxxxxxx wrote on 07/03/2006 11:34:22 AM:

Try "strings -a {filename} | grep GCC"

This works for me on a quick test case. It does not work on strip'ed
execuables.


-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx on behalf of Amit H Kumar
Sent: Mon 07/03/2006 11:22 AM
To: redhat-list@xxxxxxxxxx
Cc:
Subject: Given an object/executable how to identify the compiler
used tocompile it.

Hi Red Hat,

I am not sure if this is a Red Hat linux question or a compiler specific
question. But please guide me.

Given an object/executable how to identify the compiler used to compile
it.
Are there any bin-utilities that can be used to find out.

Thank you for any feedback,
-AK

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list