Fix lguest bzImage loading with CONFIG_RELOCATABLE=y
commita8a11f06973fa63ad692a8f97694cb5eeb70b3f3
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 27 Jul 2007 03:35:43 +0000 (27 13:35 +1000)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 29 Jul 2007 02:53:36 +0000 (28 19:53 -0700)
treed26b297464d413f7b7d05bc80c76d66743865d2a
parentdfbab7540569679a91cf43208eff4ef3f4500a5f
Fix lguest bzImage loading with CONFIG_RELOCATABLE=y

Jason Yeh sent his crashing .config: bzImages made with
CONFIG_RELOCATABLE=y put the relocs where the BSS is expected, and we
crash with unusual results such as:

lguest: unhandled trap 14 at 0xc0122ae1 (0xa9)

Relying on BSS being zero was merely laziness on my part, and
unfortunately, lguest doesn't go through the normal startup path (which
does this in asm).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/lguest/lguest.c