-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix IAR assembler errors on except.S #13366
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
Fix IAR assembler errors on except.S #13366
Conversation
@matthew-macovsky-cypress, thank you for your changes. |
cc @jeromecoutant this is similar to what you were seeing |
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.
@matthew-macovsky-cypress Changes look fine to me. Can you add the details to the commit message please? The copy of the description from here should be sufficient.
#13248 for reference, also fixing the issue but differently. |
Fixes two errors produced on except.S by the IAR assembler (as seen in issue ARMmbed#13200). The first: "'ALIGN' is illegal. Use directive ALIGNROM or ALIGNRAM (the first parameter is raised to the power of 2, the second is a 32-bit fill value)." Fixed by changing ALIGN to ALIGNROM 2 to align to a 4-byte boundary (mirroring what ALIGN does in the ARM except.S). The second (on THUMB): "Must be placed inside a section" Fixed by moving THUMB after the SECTION directive so that it affects that section.
7da9dab
to
b7c0e89
Compare
@0xc0170 Updated the commit message. |
CI started |
Test run: SUCCESSSummary: 6 of 6 test jobs passed |
Summary of changes
These changes resolve the IAR assembler errors seen in issue #13200.
By running the IAR assembler directly I was able to see the actual error messages.
The first:
To resolve this I replaced ALIGN with ALIGNROM 2, which aligns to a 4-byte boundary (mirroring what ALIGN does in the ARM except.S).
The second:
To resolve this I moved THUMB after the SECTION directive so that it affects that section.
Documentation
None
Pull request type
Test results