linux/arch/arm/boot/compressed
Russell King 5de813b6cd ARM: Eliminate decompressor -Dstatic= PIC hack
We used to build decompressors with -Dstatic= to avoid any local data
being generated.  The problem is that local data generates GOTOFF
relocations, which means we can't relocate the data relative to the
text segment.

Global data, on the other hand, goes through the GOT, and can be
relocated anywhere.

Unfortunately, with the new decompressors, this presents a problem
since they declare static data within functions, and this leads to
stack overflow.

Fix this by separating out the decompressor code into a separate file,
and removing 'static' from BSS data in misc.c.

Also, discard the .data section - this means that should we end up
with read/write initialized data, the decompressor will fail to link
and the problem will be obvious.

Acked-by: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2010-02-25 19:34:31 +00:00
..
.gitignore [ARM] 5194/1: update .gitignore 2008-08-12 19:54:09 +01:00
big-endian.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
decompress.c ARM: Eliminate decompressor -Dstatic= PIC hack 2010-02-25 19:34:31 +00:00
head-l7200.S Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02: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-xscale.S [ARM] Eliminate useless includes of asm/mach-types.h 2008-08-07 09:40:04 +01:00
head.S ARM: add base support for Marvell Dove SoC 2009-11-27 15:43:06 -05:00
ll_char_wr.S [ARM] Remove LOADREGS macro 2006-06-25 11:23:45 +01:00
Makefile ARM: Eliminate decompressor -Dstatic= PIC hack 2010-02-25 19:34:31 +00:00
Makefile.debug Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
misc.c ARM: Eliminate decompressor -Dstatic= PIC hack 2010-02-25 19:34:31 +00: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.lzo.S arm: add support for LZO-compressed kernels 2010-01-11 09:34:05 -08:00
vmlinux.lds.in ARM: Eliminate decompressor -Dstatic= PIC hack 2010-02-25 19:34:31 +00:00