Backport v3.6: Fix IAR endianness detection in alignment.h - #10840
Backport v3.6: Fix IAR endianness detection in alignment.h#10840nzzlinh wants to merge 2 commits into
Conversation
11a45d5 to
eab8a79
Compare
The IAR C/C++ compiler always defines both __LITTLE_ENDIAN__ and __BIG_ENDIAN__ macros internally, assigning '1' to the active endianness and '0' to the inactive one. The previous check defined(__LITTLE_ENDIAN__) always evaluated to true on IAR, causing big-endian targets to be incorrectly treated as little-endian. This commit updates the check to verify the value (__XXXX_ENDIAN__ == 1) Signed-off-by: nzzlinh <dlinhvn@gmail.com>
eab8a79 to
85edb9c
Compare
Signed-off-by: nzzlinh <dlinhvn@gmail.com>
|
Dear @bensze01 , Just a quick question. We will need this fix to be merged into the mainstream before we can pull it back into our work, so we are trying to adjust our plan accordingly. Could you please let us know which MbedTLS release this MR is currently targeted for, and if possible, the tentative timeline for merging? Thank you 😄 |
|
@nzzlinh There is no target release. We lack review bandwidth and this pull request is competing with a lot of others. Applications for becoming a maintainer are open. Serious enquiries only please — in practice, you need to work on features you don't care about in order to make time for the features you don't care about. |
|
@gilles-peskine-arm Thank you for the clarification. Just to be clear, I was not asking for a target date nor trying to rush the review process. I simply wanted to understand whether there was any plan to include this fix in a future release. I completely understand that maintainers have limited review bandwidth and many competing priorities. We're happy to wait and appreciate the work that goes into keeping the project healthy. In any case, thank you for taking the time to respond, and hopefully this fix will find its way into a future release when bandwidth permits. Many thanks and have a good day 😸 |
Description
This is a backport of Mbed-TLS/TF-PSA-Crypto#838.
PR checklist