-
Notifications
You must be signed in to change notification settings - Fork 3k
IAR: compilation issues fix #13248
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
IAR: compilation issues fix #13248
Conversation
NB: issues intriduced in ARMmbed#12824
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As commented earlier. there are 3 things fixed , are they connected? w need section specified, branching instead of falling into and also alignment removal?
I don't know. The 3 fixes are needed for compilation. Other solution could be to revert IAR patch from #12824 |
@jeromecoutant, thank you for your changes. |
@kjbracey-arm Please review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can see this is reverting some changes made in that other PR, but I don't know why they need to be reverted. Can you put in some explanation - what errors are you getting?
@@ -58,7 +59,7 @@ BusFault_Handler | |||
UsageFault_Handler | |||
EXPORT UsageFault_Handler | |||
MOVS R3,#FAULT_TYPE_USAGE_FAULT | |||
; Fall into Fault_Handler | |||
B Fault_Handler |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this required? To make Fault_Handler 4-byte aligned? But it doesn't need to be.
@@ -36,6 +36,7 @@ FAULT_TYPE_BUS_FAULT EQU 0x30 | |||
FAULT_TYPE_USAGE_FAULT EQU 0x40 | |||
|
|||
PRESERVE8 | |||
SECTION .rodata:DATA:NOROOT(2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this doing?
Oh, I see there's a bit of description in the GitHub linked issue, but that's never sufficient - what matters is what goes into the commit message. But you never answered the question there - are all these changes necessary? Have you selectively tried seeing which one clears that silent error? |
PR #13366 fixes the issue with details - the changes are different. I'll close this one. |
Summary of changes
Fix #13200
Issue were introduced in #12824
@0xc0170
@kjbracey-arm
Impact of changes
IAR compilation is back
Migration actions required
Documentation
Pull request type
Test results
Reviewers