summaryrefslogtreecommitdiffstats
path: root/arch/x86/lguest/Makefile
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2009-06-03 14:52:24 +0930
committerLinus Torvalds <torvalds@linux-foundation.org>2009-06-04 11:50:06 -0700
commit2cb7878a3a4341d1faa208de962d66f0817d3e7a (patch)
tree6639c4dcce9f213a58144e0c0431a339b69c42b2 /arch/x86/lguest/Makefile
parent9fa7eb283c5cdc2b0f4a8cfe6387ed82e5e9a3d3 (diff)
lguest: fix 'unhandled trap 13' with CONFIG_CC_STACKPROTECTOR
We don't set up the canary; let's disable stack protector on boot.c so we can get into lguest_init, then set it up. As a side effect, switch_to_new_gdt() sets up %fs for us properly too. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86/lguest/Makefile')
-rw-r--r--arch/x86/lguest/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/lguest/Makefile b/arch/x86/lguest/Makefile
index 27f0c9ed7f6..94e0e54056a 100644
--- a/arch/x86/lguest/Makefile
+++ b/arch/x86/lguest/Makefile
@@ -1 +1,2 @@
obj-y := i386_head.o boot.o
+CFLAGS_boot.o := $(call cc-option, -fno-stack-protector)