freemaster crashes when loading an elf file generated by gcc 11

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

freemaster crashes when loading an elf file generated by gcc 11

跳至解决方案
1,366 次查看
Jimny
Contributor II

Hello together,

I load an elf in freemaster, but when I try to save the project, freemaster crashes.

1.PNG

The elf file is generated by arm-none-eabi-gcc version 11.3.1. But when I compile the same source code with arm-none-eabi-gcc version 10.3.1, freemaster works fine.

Here is the version of freemaster.

2.PNG

You can also find the elf which makes freemaster crash in the attachment.

It's very nice of you to give some help.

标记 (1)
0 项奖励
1 解答
1,327 次查看
MichalH
NXP Apps Support
NXP Apps Support

Hello,

until this is resolved, you should be able to use -gdwarf-4 gcc option as a workaround. The issue seems to be related to Dwarf version 5 parsing.

Regards,
Michal

在原帖中查看解决方案

0 项奖励
4 回复数
1,335 次查看
MichalH
NXP Apps Support
NXP Apps Support

Hello,

I can confirm the error when parsing the ELF file format generated by GCC11. 

We will analyze the issue and provide more information here.

Thank you,
Michal

0 项奖励
1,328 次查看
MichalH
NXP Apps Support
NXP Apps Support

Hello,

until this is resolved, you should be able to use -gdwarf-4 gcc option as a workaround. The issue seems to be related to Dwarf version 5 parsing.

Regards,
Michal

0 项奖励
687 次查看
EB_A
Contributor I

The problem still remain in case we are including any library (also from NXP ) that was not created with that option.

is there any plan to solve the gdwarf 5 issue ?.   

Regards,

Emi

0 项奖励
1,316 次查看
Jimny
Contributor II

Hello Michal

I tried your solution, it works. Thank you.

0 项奖励