From: Pekka Enberg Date: Tue, 18 Oct 2011 16:52:29 +0000 (+0300) Subject: kvm tools: Disable stack protector for BIOS code X-Git-Tag: next-20111025~3^2~5 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=605cd71c434e174e3368a3b38d851f2b080fbf05;p=karo-tx-linux.git 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 Signed-off-by: Pekka Enberg --- diff --git a/tools/kvm/Makefile b/tools/kvm/Makefile index 8387e2f9dbc1..0005b0af790c 100644 --- a/tools/kvm/Makefile +++ b/tools/kvm/Makefile @@ -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