summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/m68k/cpu/u-boot.lds19
1 files changed, 10 insertions, 9 deletions
diff --git a/arch/m68k/cpu/u-boot.lds b/arch/m68k/cpu/u-boot.lds
index be1ad0170af..452003ff43c 100644
--- a/arch/m68k/cpu/u-boot.lds
+++ b/arch/m68k/cpu/u-boot.lds
@@ -69,28 +69,27 @@ SECTIONS
__ex_table : { *(__ex_table) }
__stop___ex_table = .;
- . = ALIGN(8);
+ . = ALIGN(4);
__init_begin = .;
.text.init : { *(.text.init) }
.data.init : { *(.data.init) }
- . = ALIGN(8);
+ . = ALIGN(4);
__init_end = .;
- . = ALIGN(8);
+ . = ALIGN(4);
__rel_dyn_start = .;
.rela.dyn : {
*(.rela.dyn)
}
__rel_dyn_end = .;
- . = ALIGN(8);
- __dyn_sym_start = .;
- .dynsym : {
+ .dynsym ALIGN(4) : {
+ __dyn_sym_start = .;
*(.dynsym)
+ __dyn_sym_end = .;
+ . = ALIGN(8);
}
- __dyn_sym_end = .;
- . = ALIGN(8);
_end = .;
__bss_start = .;
@@ -100,9 +99,11 @@ SECTIONS
*(.bss*)
*(.sbss*)
*(COMMON)
- . = ALIGN(8);
+ . = ALIGN(4);
_ebss = .;
}
__bss_end = . ;
PROVIDE (end = .);
}
+
+ASSERT(_end % 8 == 0, "_end must be 8-byte aligned for device tree");