[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] Disable GCC stack protector for ROMBIOS



Signed-off-by: Anthony Liguori <aliguori@xxxxxxxxxx>

Regards,

Anthony Liguori
diff -r ad9bbd103034 tools/firmware/rombios/32bit/Makefile
--- a/tools/firmware/rombios/32bit/Makefile     Fri Feb 09 18:19:24 2007 +0000
+++ b/tools/firmware/rombios/32bit/Makefile     Tue Feb 13 11:13:25 2007 -0600
@@ -9,6 +9,8 @@ TARGET = 32bitbios_flat.h
 
 CFLAGS += -fno-builtin -O2 -msoft-float -nostdlib
 CFLAGS += -I../ -DGCC_PROTOS
+CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,)
+CFLAGS += $(call cc-option,$(CC),-fno-stack-protector-all,)
 
 SUBDIRS = tcgbios
 
diff -r ad9bbd103034 tools/firmware/rombios/32bit/tcgbios/Makefile
--- a/tools/firmware/rombios/32bit/tcgbios/Makefile     Fri Feb 09 18:19:24 
2007 +0000
+++ b/tools/firmware/rombios/32bit/tcgbios/Makefile     Tue Feb 13 11:12:23 
2007 -0600
@@ -9,6 +9,8 @@ OBJECTS = $(foreach f,$(FILES),$(f).o)
 OBJECTS = $(foreach f,$(FILES),$(f).o)
 
 CFLAGS += -fno-builtin -O2 -msoft-float -nostdlib
+CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,)
+CFLAGS += $(call cc-option,$(CC),-fno-stack-protector-all,)
 CFLAGS += -I../ -I../../ -DGCC_PROTOS
 
 .PHONY: all clean
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.