Changes since v4: - Split the patch into a generic loader part, and specific arm64 support.
- There is now a specific limit for the gzip loader, plus a comment to indicate that it's just there to stop an excessive malloc. The limit is now decoupled (and larger) than the u-boot limit, since this function might be used for non-kernels in future. - Remove comment about aarch64 in generic code. Rich.