aboutsummaryrefslogtreecommitdiff
path: root/arch/sandbox
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-03-27 14:26:18 -0600
committerTom Rini <trini@konsulko.com>2022-04-18 17:53:56 -0400
commit0c6be933ffeb991c1b9b70bce9cf9e9cdb92c9ed (patch)
treee16be85f0aad73bd5f76ed52460dc166de89857b /arch/sandbox
parent1b34719b615bee0528f3c3957134aad0fb3e6fb5 (diff)
downloadu-boot-0c6be933ffeb991c1b9b70bce9cf9e9cdb92c9ed.zip
u-boot-0c6be933ffeb991c1b9b70bce9cf9e9cdb92c9ed.tar.gz
u-boot-0c6be933ffeb991c1b9b70bce9cf9e9cdb92c9ed.tar.bz2
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>
Diffstat (limited to 'arch/sandbox')
-rw-r--r--arch/sandbox/cpu/u-boot-spl.lds2
-rw-r--r--arch/sandbox/cpu/u-boot.lds2
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/sandbox/cpu/u-boot-spl.lds b/arch/sandbox/cpu/u-boot-spl.lds
index 6754f4e..206e265 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 6d71061..92e834a 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*)));
}