kvm tools: Disable stack protector for BIOS code

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>
This commit is contained in:
Pekka Enberg
2015-06-01 16:39:48 +01:00
committed by Will Deacon
parent b4eab05e56
commit a9680e3bd4
+2
View 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