From f04ef8ed4006acc07290799548543610fd6d044c Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Fri, 22 Sep 2017 14:15:26 +0200 Subject: [PATCH] run: align data after last boot module In the image.elf file, the very last boot module is followed by arbitrary other core-local data. Since those boot modules are exported as page-granular dataspace to the outside of core via core's ROM service, we need to ensure that the last page is padded with zeros. --- tool/run/run | 1 + 1 file changed, 1 insertion(+) diff --git a/tool/run/run b/tool/run/run index 3f0c43dd7..77ffd2001 100755 --- a/tool/run/run +++ b/tool/run/run @@ -732,6 +732,7 @@ proc generate_boot_modules_asm {path modules} { append asm_src "\n" } + append asm_src ".p2align MIN_PAGE_SIZE_LOG2\n" append asm_src ".global _boot_modules_binaries_end\n" append asm_src "_boot_modules_binaries_end:\n"