This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

arm-none-eabi-gcc: symbols in debug-info do not have address information with new compiler version

Hello all,

previously we were using arm-none-eabi-gcc 7.3.1 to compile an elf-file which was the input of a tool which includes an elf-file parser to record certain variables.

This elf-file parser basically creates a list of all static variables like this:

When updating to compiler version 10.3.1 the parsing of the elf-file does not work properly anymore. I did some debugging and saw that already in the debug-info of the generated elf-file the address information (DW_AT_location) of most variables is missing.

When I use "arm-none-eabi-objdump --dwarf Firmware.elf" on a elf-file compiled with version 10.3.1, there is no "DW_AT_location" visible:

However the same with version 7.3.1 shows correct address information:

But in the map file of both compiler versions the address is shown correctly in the map file:

The compiler settings for 10.3.1 are:

- Does anybody have an idea why the address information is missing with the new compiler version?

- Is there an easier way to generate a list of variables (global and class variables) like shown at the beginning of the post?

Thank you in advance!

Regards,

Martin

0