[1.1] Fix alignment problems with IAR and Zephyr #779

Merged
LoveKarlsson merged 1 commit from iar-alignment-fix into tf-psa-crypto-1.1 2026-04-29 10:50:25 -05:00
LoveKarlsson commented 2026-04-27 02:09:02 -05:00 (Migrated from github.com)

Since __packed is a reserved keyword for IAR compilers, and Zephyr defines it to attribute(packed), some typedef constructs in TF-PSA-Crypto does not work with attribute(packed), only with the keyword __packed.

Added changelog entry.

This fix temporary undefs the macro and restores it after the typedefs.

Description

Please write a few sentences describing the overall goals of the pull request's commits.

PR checklist

Please remove the segment/s on either side of the | symbol as appropriate, and add any relevant link/s to the end of the line.
If the provided content is part of the present PR remove the # symbol.

Since __packed is a reserved keyword for IAR compilers, and Zephyr defines it to attribute(__packed__), some typedef constructs in TF-PSA-Crypto does not work with attribute(packed), only with the keyword __packed. Added changelog entry. This fix temporary undefs the macro and restores it after the typedefs. ## Description Please write a few sentences describing the overall goals of the pull request's commits. ## PR checklist Please remove the segment/s on either side of the | symbol as appropriate, and add any relevant link/s to the end of the line. If the provided content is part of the present PR remove the # symbol. - [x] **changelog** provided - [x] **TF-PSA-Crypto development PR** provided https://github.com/Mbed-TLS/TF-PSA-Crypto/pull/410 - [x] **TF-PSA-Crypto 1.1 PR** here - [ ] **mbedtls 3.6 PR** provided https://github.com/Mbed-TLS/mbedtls/pull/10202 - **tests** not required because: integration fix, up to the integrator to validate
gilles-peskine-arm (Migrated from github.com) approved these changes 2026-04-29 04:38:30 -05:00
gilles-peskine-arm (Migrated from github.com) left a comment

LGTM

LGTM
valeriosetti (Migrated from github.com) approved these changes 2026-04-29 04:48:44 -05:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-Mbed-TLS/TF-PSA-Crypto!779
No description provided.