mirror of https://gitee.com/openkylin/linux.git
5ffb04f669
The appended DTB gets relocated with the decompressor code to get out of the way of the decompressed kernel. However the kernel's .bss section may be larger than the relocated code and data, and then the DTB gets overwritten. Let's make sure the relocation takes care of moving zImage far enough so no such conflict with .bss occurs. Thanks to Tony Lindgren <tony@atomide.com> for figuring out this issue. While at it, let's clean up the code a bit so that the wont_overwrite symbol is used while determining if a conflict exists, making the above change more precise as well as eliminating some ARM/THUMB alternates. Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org> Acked-by: Tony Lindgren <tony@atomide.com> Tested-by: Shawn Guo <shawn.guo@linaro.org> Tested-by: Dave Martin <dave.martin@linaro.org> Tested-by: Thomas Abraham <thomas.abraham@linaro.org> |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
big-endian.S | ||
decompress.c | ||
head-sa1100.S | ||
head-shark.S | ||
head-sharpsl.S | ||
head-shmobile.S | ||
head-vt8500.S | ||
head-xscale.S | ||
head.S | ||
ll_char_wr.S | ||
misc.c | ||
mmcif-sh7372.c | ||
ofw-shark.c | ||
piggy.gzip.S | ||
piggy.lzma.S | ||
piggy.lzo.S | ||
sdhi-sh7372.c | ||
sdhi-shmobile.c | ||
sdhi-shmobile.h | ||
vmlinux.lds.in |