]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sandbox: Align linker lists to a 32-byte boundary
authorSimon Glass <sjg@chromium.org>
Sun, 27 Mar 2022 20:26:18 +0000 (14:26 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 18 Apr 2022 21:53:56 +0000 (17:53 -0400)
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>
arch/sandbox/cpu/u-boot-spl.lds
arch/sandbox/cpu/u-boot.lds

index 6754f4ef6ccb7c73fb6ed5b787a4aa733538bb60..206e265e74bf0ee451c6ec8182a5d652483dc268 100644 (file)
@@ -8,7 +8,7 @@
 SECTIONS
 {
 
-       . = ALIGN(4);
+       . = ALIGN(32);
        .u_boot_list : {
                KEEP(*(SORT(.u_boot_list*)));
        }
index 6d710618f591650c141c1c1dd24160e97af6ec92..92e834a8d2bc0028082b65f1319f94f1d6a117c1 100644 (file)
@@ -8,7 +8,7 @@
 SECTIONS
 {
 
-       . = ALIGN(4);
+       . = ALIGN(32);
        .u_boot_list : {
                KEEP(*(SORT(.u_boot_list*)));
        }