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.

Compiler/C2000WARE-DIGITALPOWER-SDK: ELF Extract (object dump of elf file )

Part Number: C2000WARE-DIGITALPOWER-SDK

Tool/software: TI C/C++ Compiler

I am suing the below tool suite to comiple my code and i am able to get .map and .elf file.  I am not able to see static varibles listed in my map file.

ti-cgt-c2000_18.1.2.LTS

1) Any possibility to enable the static variables in map file

2) Alos I would like to see the elf extract , is there any utility avaible to extract (objdump like in hightec compiler suite) the elf  file.

  • The C2000 compiler, prior to version 18.9.0.STS, only supports COFFABI.  This means only COFF object file format is available.  Starting with version 18.9.0.STS, support for EABI is added.  EABI means, among other things, use of ELF object file format.   Thus, I will address your post as if you asked about COFF format instead of ELF.

    Manaf Hameed said:
    1) Any possibility to enable the static variables in map file

    Use the linker option --mapfile_contents=sym_defs.  

    Manaf Hameed said:
    2) Alos I would like to see the elf extract , is there any utility avaible to extract (objdump like in hightec compiler suite) the elf  file.

    Consider using object file display utility ofd2000.  It is documented in the C2000 assembly tools manual.

    Thanks and regards,

    -George