-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue with c++ exceptions support + elf loading #11689
Comments
Also, to add, as I understand each text section has corresponding exidx and extab sections. Hence, wondering
|
Thank you @abhishek-samsung ! |
Hello @acassis , could you please help me with this issue? Are exceptions with elf loading working on any other ARM cortex M boards? Also, I found that all the newly created sections have the SHF_GROUP flag. And its not handled in elf loading. Any guidance or reference on this would be very helpful. |
Hi @abhishek-samsung I did a suggestion in your PR, maybe we could create a generic section that could be defined in the board linker script and that section will be just like an alias to the ARM section. I think this way we avoid polluting the generic linker script with arch specific sections. @xiaoxiang781216 @patacongo what do you think? |
Since it's a common issue for all arm32 soc/chip, I would suggest that we should find a solution fix this problem for all board. |
When we are trying to build elf along with exceptions (stm32f4discovery elf config with uClib++ and exceptions enabled), some extra sections are getting created (without following the linker script).
But, as per the elf loader code, we are only considering one ARM.exidx section in up_init_exidx,
nuttx/binfmt/libelf/libelf_load.c
Lines 408 to 420 in 72f9bd1
Why are the other sections not considered? Also, why is the out file not following the linker script, why are new sections created?
I have integrated the elf loading (binfmt/libelf) in my project and I am trying to enabled cpp exceptions. I am stuck with the issue I have mentioned above. I couldn't check if the config works fine as I don't have stm32f4discovery board but I am able to verify that the same sections are getting created in nuttx too. Is this expected behavior? Is there a way to avoid these additional sections?
I have fixed some build issues when building the above config in the below PRs.
#11688
apache/nuttx-apps#2286
The text was updated successfully, but these errors were encountered: