linux/arch/arm/boot/compressed
Nicolas Pitre adcc25915b ARM: zImage: make sure not to relocate on top of the relocation code
If the zImage load address is slightly below the relocation address,
there is a risk for the copied data to overwrite the copy loop or
cache flush code that the relocation process requires.  Always
bump the relocation address by the size of that code to avoid this
issue.

Noticed by Tony Lindgren <tony@atomide.com>.

While at it, let's start the copy from the restart symbol which makes
the above code size computation possible by the assembler directly
(same sections), given that we don't need to preserve the code before
that point anyway. And therefore we don't need to carry the _start
pointer in r5 anymore.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Tested-by: Tony Lindgren <tony@atomide.com>
2011-05-07 00:07:53 -04:00
..
.gitignore ARM: 6739/1: update .gitignore for boot/compressed 2011-02-19 11:24:25 +00:00
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 [PATCH] ARM: 2816/1: Shark: boot kernel images bigger than 1 MB 2005-07-17 20:12:08 +01:00
head-sharpsl.S Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
head-shmobile.S ARM: 6617/1: mmc, Add zboot from MMC support for SuperH Mobile ARM 2011-01-25 15:06:52 +00:00
head-vt8500.S ARM: 6597/1: Add basic architecture support for VIA/WonderMedia 85xx SoC's 2011-01-25 15:07:01 +00:00
head-xscale.S [ARM] Eliminate useless includes of asm/mach-types.h 2008-08-07 09:40:04 +01:00
head.S ARM: zImage: make sure not to relocate on top of the relocation code 2011-05-07 00:07:53 -04:00
ll_char_wr.S [ARM] Remove LOADREGS macro 2006-06-25 11:23:45 +01:00
Makefile ARM: zImage: make sure the stack is 64-bit aligned 2011-05-06 23:55:49 -04:00
misc.c ARM: v6k: introduce CPU_V6K option 2011-02-02 21:23:26 +00:00
mmcif-sh7372.c mmc: Add MMC_PROGRESS_* 2011-03-25 01:24:57 +09:00
ofw-shark.c [ARM] 2922/1: compile fix for shark 2005-09-20 16:21:42 +01:00
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: zImage: make sure the stack is 64-bit aligned 2011-05-06 23:55:49 -04:00