From 0310f47f24896915d33e9ee87acf1e86382c8f1f Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Fri, 15 Mar 2024 13:40:54 +0100 Subject: [PATCH] Set max-page-size for linking bootstrap Without this the virtual addresses will not match the file offsets for the final initfs blob on AArch64 as there it will align to 64k by default. --- recipes/core/bootstrap/recipe.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes/core/bootstrap/recipe.toml b/recipes/core/bootstrap/recipe.toml index 8ad318ce6..90bff591a 100644 --- a/recipes/core/bootstrap/recipe.toml +++ b/recipes/core/bootstrap/recipe.toml @@ -19,5 +19,6 @@ mkdir -v "${COOKBOOK_STAGE}/boot" -o "${COOKBOOK_STAGE}/boot/bootstrap" \ --gc-sections \ -T "${COOKBOOK_SOURCE}/src/${ARCH}.ld" \ + -z max-page-size=4096 \ "${COOKBOOK_BUILD}/${TARGET}/release/libbootstrap.a" """ -- GitLab