OpenCloudOS-Kernel/arch/riscv
Palmer Dabbelt 41fb9d54f1
Revert "RISC-V: Make BSS section as the last section in vmlinux.lds.S"
At least BBL relies on the flat binaries containing all the bytes in the
actual image to exist in the file.  Before this revert the flat images
dropped the trailing zeros, which caused BBL to put its copy of the
device tree where Linux thought the BSS was, which wreaks all sorts of
havoc.  Manifesting the bug is a bit subtle because BBL aligns
everything to 2MiB page boundaries, but with large enough kernels you're
almost certain to get bitten by the bug.

While moving the sections around isn't a great long-term fix, it will at
least avoid producing broken images.

This reverts commit 22e6a2e14c.

Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
2019-02-11 15:24:45 -08:00
..
boot RISC-V: Build flat and compressed kernel images 2018-11-20 05:19:09 -08:00
configs RISC-V: defconfig: Add CRYPTO_DEV_VIRTIO=y 2019-01-23 14:09:01 -08:00
include riscv: Add pte bit to distinguish swap from invalid 2019-02-11 15:24:45 -08:00
kernel Revert "RISC-V: Make BSS section as the last section in vmlinux.lds.S" 2019-02-11 15:24:45 -08:00
lib RISC-V: lib: minor asm cleanup 2018-12-21 08:17:02 -08:00
mm riscv: fixup max_low_pfn with PFN_DOWN. 2019-01-23 17:51:53 -08:00
Kconfig RISC-V: Kconfig: fix spelling mistake "traget" -> "target" 2019-01-23 12:56:20 -08:00
Kconfig.debug RISC-V: Remove EARLY_PRINTK support 2018-12-17 10:23:46 -08:00
Makefile RISC-V: Build flat and compressed kernel images 2018-11-20 05:19:09 -08:00