From 605cd71c434e174e3368a3b38d851f2b080fbf05 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Tue, 18 Oct 2011 19:52:29 +0300 Subject: [PATCH] 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 --- tools/kvm/Makefile | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.5