]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
MIPS: Assure end of U-Boot is at 8-byte aligned offset
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Thu, 13 Nov 2025 11:56:09 +0000 (12:56 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 28 Nov 2025 16:20:22 +0000 (10:20 -0600)
Make sure the end of U-Boot is at 8-byte aligned offset, not 4-byte
aligned offset. This allows safely appending DT at the end of U-Boot
with the guarantee that the DT will be at 8-byte aligned offset. This
8-byte alignment is now checked by newer libfdt 1.7.2 .

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
arch/mips/cpu/u-boot.lds

index 9a4ebcd151564cb740e466ab10bcb8d53d95e20f..133ea05df3dab59a0f838f29cb4fbbacedd37881 100644 (file)
@@ -37,7 +37,7 @@ SECTIONS
                KEEP(*(SORT(__u_boot_list*)));
        }
 
-       . = ALIGN(4);
+       . = ALIGN(8);
        __image_copy_end = .;
        __init_end = .;
 
@@ -56,7 +56,7 @@ SECTIONS
                . += CONFIG_MIPS_RELOCATION_TABLE_SIZE - 4;
        }
 
-       . = ALIGN(4);
+       . = ALIGN(8);
        _end = .;
 
        .bss __rel_start (OVERLAY) : {
@@ -64,7 +64,7 @@ SECTIONS
                *(.sbss.*)
                *(.bss.*)
                *(COMMON)
-               . = ALIGN(4);
+               . = ALIGN(8);
                __bss_end = .;
        }