Hello everyone, I wanted to share my experience after encountering an issue with the new arm-none-eabi-gcc compiler version. Previously, we were using version 7.3.1, and everything worked smoothly. However, after updating to version 10.3.1, we noticed that the debug information in our elf-file was missing crucial address details. This was a significant problem because our tool relies on parsing these addresses to record specific variables.Initially, I was quite puzzled. The elf-file parser, which had been functioning perfectly, suddenly couldn’t extract the necessary data. Upon closer inspection, I realized that the DW_AT_location attribute, which contains the address information, was no longer present in the debug info. This was perplexing because the addresses were still correctly displayed in the map file.I decided to dig deeper and compared the debug info from both compiler versions. The older version provided clear address information, while the new one lacked it. This inconsistency was frustrating, especially since the map file still showed the correct addresses. I wondered if there was a compiler flag or setting that could restore this information.After some research and experimentation, I discovered that adjusting the compiler flags could make a difference. Specifically, adding -fno-omit-frame-pointer helped, but it wasn’t a complete solution. I then explored the possibility of using different debug levels or formats, but none seemed to address the root issue.Finally, I stumbled upon a solution by enabling the -gdwarf-5 flag. This change ensured that the DW_AT_location attribute was included in the debug info, restoring the functionality of our elf-file parser. It was a relief to see everything working again after such a thorough investigation.I hope this experience can help others who might encounter similar issues when updating their compiler. Sometimes, it’s the smallest adjustments that make the biggest difference. Happy coding!