From: Eric W. Biederman Date: Thu, 7 Dec 2006 01:14:04 +0000 (+0100) Subject: [PATCH] i386: Relocatable kernel support X-Git-Tag: v2.6.20-rc1~145^2^2~8^2~110 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=968de4f02621db35b8ae5239c8cfc6664fb872d8;p=pandora-kernel.git [PATCH] i386: Relocatable kernel support This patch modifies the i386 kernel so that if CONFIG_RELOCATABLE is selected it will be able to be loaded at any 4K aligned address below 1G. The technique used is to compile the decompressor with -fPIC and modify it so the decompressor is fully relocatable. For the main kernel relocations are generated. Resulting in a kernel that is relocatable with no runtime overhead and no need to modify the source code. A reserved 32bit word in the parameters has been assigned to serve as a stack so we figure out where are running. Signed-off-by: Eric W. Biederman Signed-off-by: Vivek Goyal Signed-off-by: Andi Kleen --- Reading git-diff-tree failed