From: Simon Glass <sjg@chromium.org>
Date: Sun, 27 Mar 2022 20:26:18 +0000 (-0600)
Subject: sandbox: Align linker lists to a 32-byte boundary
X-Git-Tag: v2025.01-rc5-pxa1908~1452^2~2
X-Git-Url: http://git.dujemihanovic.xyz/img/html/static/%7B%7B%20%28.OutputFormats.Get?a=commitdiff_plain;h=0c6be933ffeb991c1b9b70bce9cf9e9cdb92c9ed;p=u-boot.git

sandbox: Align linker lists to a 32-byte boundary

Use this larger boundary to ensure that linker lists at least start on the
maximum possible alignment boundary. See also the CONFIG_LINKER_LIST_ALIGN
setting, but that is host-arch-specific, so it seems better to use the
largest value for every host architecture.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

diff --git a/arch/sandbox/cpu/u-boot-spl.lds b/arch/sandbox/cpu/u-boot-spl.lds
index 6754f4ef6c..206e265e74 100644
--- a/arch/sandbox/cpu/u-boot-spl.lds
+++ b/arch/sandbox/cpu/u-boot-spl.lds
@@ -8,7 +8,7 @@
 SECTIONS
 {
 
-	. = ALIGN(4);
+	. = ALIGN(32);
 	.u_boot_list : {
 		KEEP(*(SORT(.u_boot_list*)));
 	}
diff --git a/arch/sandbox/cpu/u-boot.lds b/arch/sandbox/cpu/u-boot.lds
index 6d710618f5..92e834a8d2 100644
--- a/arch/sandbox/cpu/u-boot.lds
+++ b/arch/sandbox/cpu/u-boot.lds
@@ -8,7 +8,7 @@
 SECTIONS
 {
 
-	. = ALIGN(4);
+	. = ALIGN(32);
 	.u_boot_list : {
 		KEEP(*(SORT(.u_boot_list*)));
 	}