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.

read symbol information

Hi,

1 [important]. Is there any TI utility to find "global or .bss variable a,b,c.. is access by function x,y,z,..."? I didn't find OFDxx could do that. Or is there GNU tools to do that?


2. A bit further is that can any tool also list the source file, line number and type information of each symbol from object file?

Dave

  • Dave Smith62 said:
    1 [important]. Is there any TI utility to find "global or .bss variable a,b,c.. is access by function x,y,z,..."? I didn't find OFDxx could do that.

    There is no utility from TI which does that.

    Dave Smith62 said:
    Or is there GNU tools to do that?

    You don't say which target you build for.  I presume that toolset supports EABI, which means it uses ELF file format.  If that is the case, then you can use GNU tools.  I'm not familiar enough with GNU tools to know whether they offer this feature.

    Dave Smith62 said:
    2. A bit further is that can any tool also list the source file, line number and type information of each symbol from object file?

    There is no utility from TI which does that.

    Thanks and regards,

    -George

  • I could not find which tool for this.

  • It is possible to create utilities like you describe.  I limited my comments to what is available now.

    Thanks and regards,

    -George

  • If you generate DWARF debugging information, you can extract most of what you want from the DWARF information. OFD can dump this information if you use the options "-g -x", but you'll need to interpret the information yourself. There isn't any ready-made tool that I'm aware of that answers your specific queries. You could also look at the NM utility, but that is quite limited.

    Why do you need these specific queries? To what use will you put the information?