gnu-misc-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I detect the compiler version used to generate a .a or .so l


From: Gelu Ionescu
Subject: Re: How can I detect the compiler version used to generate a .a or .so library
Date: Thu, 16 Feb 2006 12:26:41 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)

Many thanks Alfred

Alfred M. Szmidt wrote:

   How can I detect the compiler version used to generate a .a or .so
   library ?

Depends on so many things, like if the compiler actually adds such
data to the output files.  GCC dumps such data in the .comments
sections of ELF files, so you could use something like `objdump -j
.comment -s FILE' to get that stuff.

Cheers.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]