kernel-fxtec-pro1x/arch/arm/boot/compressed
Nicolas Pitre d239b1dc09 ARM: 6746/1: remove the 4x expansion presumption while decompressing the kernel
We currently presume a 4x expansion to guess the decompressed kernel size
in order to determine if the decompressed kernel is in conflict with
the location where zImage is loaded.  This guess may cause many issues
by overestimating the final kernel image size:

- This may force a needless relocation if the location of zImage was
  fine, wasting some precious microseconds of boot time.

- The relocation may be located way too far, possibly overwriting the
  initrd image in RAM.

- If the kernel image includes a large already-compressed initramfs image
  then the problem is even more exacerbated.

And if by some strange means the 4x guess is too low then we may overwrite
ourselves with the decompressed image.

So let's use the exact decompressed kernel image size instead.  For that
we need to rely on the stat command, but this is hardly a new build
dependency as the kernel already depends on many external commands
to be built provided by the coreutils package where stat is found.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2011-02-26 13:39:51 +00:00
..
.gitignore
big-endian.S
decompress.c ARM: 6026/1: ARM: Add support for LZMA-compressed kernel images 2010-04-14 12:05:36 +01:00
head-sa1100.S Nicolas Pitre has a new email address 2009-09-15 09:37:12 -07:00
head-shark.S
head-sharpsl.S
head-shmobile.S ARM: 6515/1: Add zboot support for SuperH Mobile ARM 2010-12-05 08:40:17 +00:00
head-xscale.S
head.S ARM: 6750/1: improvements to compressed/head.S 2011-02-23 17:24:22 +00:00
ll_char_wr.S
Makefile ARM: 6746/1: remove the 4x expansion presumption while decompressing the kernel 2011-02-26 13:39:51 +00:00
misc.c ARM: remove bit-rotten STANDALONE_DEBUG for decompressor 2010-07-07 16:38:16 +02:00
ofw-shark.c
piggy.gzip.S arm: add support for LZO-compressed kernels 2010-01-11 09:34:05 -08:00
piggy.lzma.S ARM: 6026/1: ARM: Add support for LZMA-compressed kernel images 2010-04-14 12:05:36 +01:00
piggy.lzo.S arm: add support for LZO-compressed kernels 2010-01-11 09:34:05 -08:00
vmlinux.lds.in ARM: 6746/1: remove the 4x expansion presumption while decompressing the kernel 2011-02-26 13:39:51 +00:00