summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2025-12-28 04:17:27 +0100
committerTom Rini <[email protected]>2026-01-02 14:20:16 -0600
commit9ed99e2eeadb4127b8de2ecbc066de6180394355 (patch)
tree204a8cf993061741855292ad21e40a35473d27be
parentbd3f9ee679b4d1456d0d3c261ab76788950e6096 (diff)
m68k: Assure end of U-Boot is at 8-byte aligned offset
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 <[email protected]>
-rw-r--r--arch/m68k/cpu/u-boot.lds11
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/m68k/cpu/u-boot.lds b/arch/m68k/cpu/u-boot.lds
index 03d427cd36c..be1ad0170af 100644
--- a/arch/m68k/cpu/u-boot.lds
+++ b/arch/m68k/cpu/u-boot.lds
@@ -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 = . ;