summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2025-11-13 12:56:09 +0100
committerTom Rini <[email protected]>2025-11-28 10:20:22 -0600
commitd9e183a04c92d96c8f8b145c0b789c62bdfc2605 (patch)
tree1553eea303c089e1b344364b2b324ed0314192c2
parenteb726cf6ae0e202f36aabcce88e21358cd3a7c5b (diff)
MIPS: 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/mips/cpu/u-boot.lds6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/cpu/u-boot.lds b/arch/mips/cpu/u-boot.lds
index 9a4ebcd1515..133ea05df3d 100644
--- a/arch/mips/cpu/u-boot.lds
+++ b/arch/mips/cpu/u-boot.lds
@@ -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 = .;
}