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.

RTOS/AM5746: CCS Build Error: "arm-none-eabi-gcc.exe: error: unrecognized command line option '--mapfile_contents=sym_defs'"

Guru 10235 points
Part Number: AM5746

Tool/software: TI-RTOS

Hello, TI Experts,

 

Our customer sent us additional questions from the below E2E-thread.

 

They use GCC GNU v6.3.1(Linaro).

And they try to use the option "--mapfile_contents=sym_defs" like below.

  

But we found error like below on CCS.

"arm-none-eabi-gcc.exe: error: unrecognized command line option '--mapfile_contents=sym_defs'"

 

Question:

Could you tell us how to generate static variables information to map-file for GNU?

 

Best regards,

  • I apologize for making an error on the earlier related forum thread.  I failed to notice that you use the GCC ARM compiler, and not the TI ARM compiler.  This option ...

    matusan said:
    --mapfile_contents=sym_defs

    ... only works with the TI linker.

    matusan said:
    Could you tell us how to generate static variables information to map-file for GNU?

    I could not find a way to display static variables in the map file.  You can however, use the command line utilities arm-none-eabi-nm (the names utility) or arm-none-eabi-objdump (the objdump utility).  For both utilities, use the option --help to see a usage summary.  With the names utility, static variables are displayed by default.  With objdump, use the option --syms.

    Thanks and regards,

    -George

  • Hi,

    Thank you very much for your kindness.
    I really appreciate your help.
    I will send the answer to the customer.

    Best regards,