]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
m68k: Assure end of U-Boot is at 8-byte aligned offset
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 28 Dec 2025 03:17:27 +0000 (04:17 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 2 Jan 2026 20:20:16 +0000 (14: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/m68k/cpu/u-boot.lds

index 03d427cd36c9596b635539c8d7864ea0ec9d5d06..be1ad0170af6f73ed2c51107a248dbaa404ca269 100644 (file)
@@ -69,27 +69,28 @@ SECTIONS
        __ex_table : { *(__ex_table) }
        __stop___ex_table = .;
 
-       . = ALIGN(4);
+       . = ALIGN(8);
        __init_begin = .;
        .text.init : { *(.text.init) }
        .data.init : { *(.data.init) }
-       . = ALIGN(4);
+       . = ALIGN(8);
        __init_end = .;
 
-       . = ALIGN(4);
+       . = ALIGN(8);
        __rel_dyn_start = .;
        .rela.dyn : {
                *(.rela.dyn)
        }
        __rel_dyn_end = .;
 
-       . = ALIGN(4);
+       . = ALIGN(8);
        __dyn_sym_start = .;
        .dynsym : {
                *(.dynsym)
        }
        __dyn_sym_end = .;
 
+       . = ALIGN(8);
        _end = .;
 
        __bss_start = .;
@@ -99,7 +100,7 @@ SECTIONS
                *(.bss*)
                *(.sbss*)
                *(COMMON)
-               . = ALIGN(4);
+               . = ALIGN(8);
                _ebss = .;
        }
        __bss_end = . ;