From: Paolo 'Blaisorblade' Giarrusso Date: Mon, 1 May 2006 19:16:04 +0000 (-0700) Subject: [PATCH] uml: fix compilation and execution with hardened GCC X-Git-Tag: v2.6.17-rc4~80 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=275e6e1ee2bafde77e9390b27e876fa83f24cb60;p=pandora-kernel.git [PATCH] uml: fix compilation and execution with hardened GCC To make some half-assembly stubs compile, disable various "hardened" GCC features: *) we can't make it build PIC code as we need %ebx to do syscalls and GCC wants it free for PIC *) we can't leave stack protection as the stub is moved (not relocated!) in memory so the RIP-relative access to the canary tries reading from an unmapped address and causes a segfault, since we move the stub of various megabytes (the exact amount will be decided at runtime) away from the link-time address. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Acked-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed