]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm tools: Disable stack protector for BIOS code
authorPekka Enberg <penberg@kernel.org>
Tue, 18 Oct 2011 16:52:29 +0000 (19:52 +0300)
committerPekka Enberg <penberg@kernel.org>
Tue, 18 Oct 2011 16:52:29 +0000 (19:52 +0300)
This pach fixes the following build breakage on Ubuntu Linux, for example,
which enables GCC stack protector by default:

  CC       bios/int10.o
bios/int10.o: In function `vbe_get_info':
/home/penberg/linux-2.6/tools/kvm/bios/int10.c:120: undefined reference to `__stack_chk_fail'

Suggested-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/Makefile

index 8387e2f9dbc1f0ded56490a2804d2981bc3866aa..0005b0af790c4253f7aef0db4b70606b1d02c5e3 100644 (file)
@@ -216,6 +216,8 @@ BIOS_CFLAGS += -m32
 BIOS_CFLAGS += -march=i386
 BIOS_CFLAGS += -mregparm=3
 
+BIOS_CFLAGS += -fno-stack-protector
+
 bios.o: bios/bios.bin bios/bios-rom.h
 
 bios/bios.bin.elf: bios/entry.S bios/e820.c bios/int10.c bios/int15.c bios/rom.ld.S