This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

GCC Map file analyzer tool

Hi,

Is there a tool to analyze the GCC linker generated MAP file?

My requirement is to find the section size of each lib & the obj files of an executable. It is possible to drive this information from the MAP file. But requires more manual effort for every iteration.

AMAP is a MAP analyzer tool for MSVS tool chain (http://www.sikorskiy.net/prj/amap/index.html)

Is there similar tool for GCC tool chain?

Regards

Vinoth

  • I'm not aware of any such tool for GCC compilers.

    Those who interested in such tools for TI compilers should look into the cg_xml package.

    Thanks and regards,

    -George

  • George,

    Can we use cg_xml utils on GCC ELF image?

    Generated the XML file for .out generated from gcc tool chain with ofd6x. Attaching the generated XML2287.sbl_nor.xml

    Sectti bin works with generated XML & print out the section size of the elf.

    func_info print out the list of functions & sizesdump_ofd generate the perl script from the XML.

    How to use this XML to find the section sizes of each obj & libs?

    Regards

    Vinoth

     

  • Vinoth said:
    Can we use cg_xml utils on GCC ELF image?

    Sort of.  The cg_xml tools are intended for use with TI compiler tools.  We are aware the tools from the /ofd directory in the cg_xml package can be used with any tool chain that produces ELF object files.  We even did some limited testing with ELF files produced by the MontaVista gcc ARM compiler.  Beyond that, we have never officially claimed to support gcc ELF, and there are no plans to do so.

    Vinoth said:
    How to use this XML to find the section sizes of each obj & libs?

    That information is only contained in the linker map file.  For a TI compiler produced map file, you could use one of the scripts in the /map directory of the cg_xml package.  I'm not aware of a similar solution for gcc map files.

    Thanks and regards,

    -George