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-gdb cannot interpret compressed elf sections properly

Hi,

I am using arm-none-eabi-gdb to debug my embedded application for ARMv8 target. I am using stand-lone version of  ARMCLANG toolchain, and build my application using command-line. In the MAP file i could see that one of my LOAD_REGION is marked as compressed. Here is the snippet from my map file

It seems like linker is applying RW data compression. Now when i try to load my generated axf file through gdb load command like



It seems like arm gdb is not able to load the compressed data sections properly to its load address. Instead, its execution address is used (which is not intended, since i am using scatter-loading).

The program hangs in __decompress method (which seems to be ARM RunTime standard function to decompress the compressed data).

If i switch off the data compression with "--datacompressor=off" , the control is reaching main properly.

Is arm-none-eabi-gdb unable to interpret the elf file, when sections are compressed ?

Any inputs would be helpful.

Regards

Murali. 
 

0