riscv: Update alignment for some sections in linker scripts
authorBin Meng <bmeng@tinylab.org>
Thu, 13 Apr 2023 06:20:08 +0000 (14:20 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 20 Apr 2023 12:45:08 +0000 (20:45 +0800)
commit9a6569a043d336138fca857bc3140fab33a11afc
tree515b536e978f00b2d8b89b3ab9dd92e23fe77de1
parent3f37baae83ed7f4879b06cf41214a647228fc72b
riscv: Update alignment for some sections in linker scripts

Some sections in the linker scripts are aligned to 4 bytes, which
may cause misaligned exception on some platforms, e.g.: clearing
the bss section on 64-bit hardware if __bss_start does not start
from a naturally 8 bytes aligned address.

Signed-off-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/cpu/u-boot-spl.lds
arch/riscv/cpu/u-boot.lds