Skip to content

Fix encryption when using clang, and with allocatable heap #243

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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

will-v-pi
Copy link
Contributor

This fixes encryption when using clang by plugging gaps between segments when encrypting, in addition to already plugging gaps between sections within segments when signing/hashing/encrypting.

Also fixes encryption with allocatable heap, by moving the signature block into the heap for no_flash binaries (as it already is with GCC), to ensure that the signature comes at the end of a contiguous region of defined data, as encryption currently requires a contiguous region. This will fix raspberrypi/pico-sdk#2515

@will-v-pi
Copy link
Contributor Author

Also added a test build of pico-examples using latest clang, which would have caught this

These segments are not necessary, and will likely be moved to invalid memory addresses
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant