picotool icon indicating copy to clipboard operation
picotool copied to clipboard

Fix encryption when using clang, and with allocatable heap

Open will-v-pi opened this issue 5 months ago • 1 comments

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 https://github.com/raspberrypi/pico-sdk/pull/2515

will-v-pi avatar Jun 13 '25 11:06 will-v-pi

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

will-v-pi avatar Jun 13 '25 13:06 will-v-pi