This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How can we find out, which version of compiler is used to generate a binary.

Note: This was originally posted on 27th October 2009 at http://forums.arm.com

Hi All

I have two .out file generated using  ARM 2.0.1 and ARM 4.0.0.

How can i come to know which binary is generated using which
compiler.

Does ARM provide any headers in .out file.  so that i can check for ?

or is there any ARM command which will can brief me about that .out file
with information of version compiler and other version or tools it is built with.

Thanks

Rgds
Kiran
  • Note: This was originally posted on 29th October 2009 at http://forums.arm.com

    yes i have a binary  the .out file,  i too think it may not be possible... but for object file or .a ( lib file) or .obeject we can use "armar object"

    Thanks pal.

    Regards
    kw


    Do you have a binary or an object/image?  If you have an object or image, you can use the RVCT fromelf tool to see how it was built.  Try "fromelf -v ".  (You might want to direct the output to a file)

    If what you have is a raw binary, I don't believe it is possible.
  • Note: This was originally posted on 27th October 2009 at http://forums.arm.com

    Do you have a binary or an object/image?  If you have an object or image, you can use the RVCT fromelf tool to see how it was built.  Try "fromelf -v ".  (You might want to direct the output to a file)

    If what you have is a raw binary, I don't believe it is possible.
  • ARM generates an ELF as the output on compilation and linking.

    The compiler options are embedded in the header of the ELF.

    Google "ELF structure" for more information.

    You can use toolchains like "fromelf", "objdump" provided by GCC as well to extract the ELF information and print into the readable format.