diff options
| author | Marek Vasut <[email protected]> | 2025-11-19 18:44:36 +0100 |
|---|---|---|
| committer | Marek Vasut <[email protected]> | 2025-12-03 00:15:40 +0100 |
| commit | db95933996603814ba648ac6bae4eca07b4061ef (patch) | |
| tree | 4896179086cc0adf0b061115f875ce5a0227deb8 /arch | |
| parent | d4a8124805e3de3da5c9a005daa791bfba2ed28d (diff) | |
sh: 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]>
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/sh/cpu/u-boot.lds | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/sh/cpu/u-boot.lds b/arch/sh/cpu/u-boot.lds index c31deecec65..81526f5bd23 100644 --- a/arch/sh/cpu/u-boot.lds +++ b/arch/sh/cpu/u-boot.lds @@ -72,6 +72,7 @@ SECTIONS __u_boot_list : { KEEP(*(SORT(__u_boot_list*))); + . = ALIGN(8); } >ram PROVIDE (__init_end = .); @@ -83,7 +84,7 @@ SECTIONS .bss : { *(.bss) - . = ALIGN(4); + . = ALIGN(8); } >ram PROVIDE (bss_end = .); PROVIDE (__bss_end = .); |
