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.

[ARM/ TMS470] how to use linker symbol at asm file

Hi Champs,

I would like to ask the method how to correctly use linker symbol at asm file directly.

It is okay to use at C file but i can do it correctly at asm file.

The build is passed but i check the  lst file. The address is not correct mapping.

Pleasse see the bellowing black arrow.

I expect c__StackUSER should be the value of _StackUser_ but the value show it is zero.

_StackUser_ is a linker sysmbol from command file.

Do i miss anything??

Please give me a suggestion. Thanks

BR

Brian Chang

  • You are looking at the symbol in the assembler listing file.  This means the symbol is not relocated to its final address.  Read more about that in the section titled Source Listings in the ARM assembly tools manual.  You'll see that the ! character means: undefined external reference.  To see the final value of these symbols, look in the linker map file or use the names utility armnm, which is described in that same manual.

    Thanks and regards,

    -George