[PATCH 17/19] bootwrapper: compatibility layer for old U-Boots (a.k.a. cuImage, cuboot)
scottwood at freescale.com
Thu Mar 15 08:48:49 EST 2007
Mark A. Greer wrote:
> Are you sure that '_end' (which is the end of the zImage/cuImage)
> is safe to use? If the kernel is large enough (e.g., INITRAMFS)
> it will overwrite your dtb when its decompressed and relocated to 0.
> You need to grok the elfheader to figure out where the kernel will end
> and take the max of that and _end.
Wouldn't it overwrite the bootwrapper itself before overwriting the heap?
More information about the Linuxppc-dev