WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-4.0-testing] x86: Add -fno-exceptions to list of po

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-4.0-testing] x86: Add -fno-exceptions to list of possibly-supported CFLAGS for embedded targets.
From: "Xen patchbot-4.0-testing" <patchbot-4.0-testing@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 27 Jul 2010 00:30:24 -0700
Delivery-date: Tue, 27 Jul 2010 00:30:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1280092963 -3600
# Node ID e6b5b2cb8146979de9a24bec60e20b244f9236ec
# Parent  8ee744f575672c33932b0d2548906dd522d7f6d2
x86: Add -fno-exceptions to list of possibly-supported CFLAGS for embedded 
targets.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
xen-unstable changeset:   21860:2b768d52bc7f
xen-unstable date:        Sun Jul 25 22:20:47 2010 +0100
---
 Config.mk                    |    5 +++++
 stubdom/Makefile             |    4 +---
 tools/firmware/Rules.mk      |    5 +----
 tools/tests/blowfish.mk      |    5 +----
 xen/arch/x86/Rules.mk        |    5 +----
 xen/arch/x86/boot/build32.mk |    5 +----
 6 files changed, 10 insertions(+), 19 deletions(-)

diff -r 8ee744f57567 -r e6b5b2cb8146 Config.mk
--- a/Config.mk Wed Jul 21 13:55:00 2010 +0100
+++ b/Config.mk Sun Jul 25 22:22:43 2010 +0100
@@ -59,6 +59,8 @@ define cc-option-add-closure
     endif
 endef
 
+cc-options-add = $(foreach o,$(3),$(call cc-option-add,$(1),$(2),$(o)))
+
 # cc-ver: Check compiler is at least specified version. Return boolean 'y'/'n'.
 # Usage: ifeq ($(call cc-ver,$(CC),0x030400),y)
 cc-ver = $(shell if [ $$((`$(1) -dumpversion | awk -F. \
@@ -134,6 +136,9 @@ LDFLAGS += $(foreach i, $(EXTRA_LIB), -L
 LDFLAGS += $(foreach i, $(EXTRA_LIB), -L$(i)) 
 CFLAGS += $(foreach i, $(EXTRA_INCLUDES), -I$(i))
 
+EMBEDDED_EXTRA_CFLAGS := -nopie -fno-stack-protector -fno-stack-protector-all
+EMBEDDED_EXTRA_CFLAGS += -fno-exceptions
+
 # Enable XSM security module.  Enabling XSM requires selection of an 
 # XSM security module (FLASK_ENABLE or ACM_SECURITY).
 XSM_ENABLE ?= n
diff -r 8ee744f57567 -r e6b5b2cb8146 stubdom/Makefile
--- a/stubdom/Makefile  Wed Jul 21 13:55:00 2010 +0100
+++ b/stubdom/Makefile  Sun Jul 25 22:22:43 2010 +0100
@@ -58,9 +58,7 @@ CROSS_PREFIX=$(CURDIR)/$(CROSS_ROOT)
 # Disable PIE/SSP if GCC supports them. They can break us.
 TARGET_CFLAGS += $(CFLAGS)
 TARGET_CPPFLAGS += $(CPPFLAGS)
-TARGET_CFLAGS += $(call cc-option,$(CC),-nopie,)
-TARGET_CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,)
-TARGET_CFLAGS += $(call cc-option,$(CC),-fno-stack-protector-all,)
+$(call cc-options-add,TARGET_CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS))
 
 # Do not use host headers and libs
 GCC_INSTALL = $(shell LANG=C gcc -print-search-dirs | sed -n -e 's/install: 
\(.*\)/\1/p')
diff -r 8ee744f57567 -r e6b5b2cb8146 tools/firmware/Rules.mk
--- a/tools/firmware/Rules.mk   Wed Jul 21 13:55:00 2010 +0100
+++ b/tools/firmware/Rules.mk   Sun Jul 25 22:22:43 2010 +0100
@@ -12,10 +12,7 @@ endif
 
 CFLAGS += -Werror
 
-# Disable PIE/SSP if GCC supports them. They can break us.
-$(call cc-option-add,CFLAGS,CC,-nopie)
-$(call cc-option-add,CFLAGS,CC,-fno-stack-protector)
-$(call cc-option-add,CFLAGS,CC,-fno-stack-protector-all)
+$(call cc-options-add,CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS))
 
 # Extra CFLAGS suitable for an embedded type of environment.
 CFLAGS += -fno-builtin -msoft-float
diff -r 8ee744f57567 -r e6b5b2cb8146 tools/tests/blowfish.mk
--- a/tools/tests/blowfish.mk   Wed Jul 21 13:55:00 2010 +0100
+++ b/tools/tests/blowfish.mk   Sun Jul 25 22:22:43 2010 +0100
@@ -4,10 +4,7 @@ CFLAGS =
 CFLAGS =
 include $(XEN_ROOT)/tools/Rules.mk
 
-# Disable PIE/SSP if GCC supports them. They can break us.
-$(call cc-option-add,CFLAGS,CC,-nopie)
-$(call cc-option-add,CFLAGS,CC,-fno-stack-protector)
-$(call cc-option-add,CFLAGS,CC,-fno-stack-protector-all)
+$(call cc-options-add,CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS))
 
 CFLAGS += -fno-builtin -msoft-float
 
diff -r 8ee744f57567 -r e6b5b2cb8146 xen/arch/x86/Rules.mk
--- a/xen/arch/x86/Rules.mk     Wed Jul 21 13:55:00 2010 +0100
+++ b/xen/arch/x86/Rules.mk     Sun Jul 25 22:22:43 2010 +0100
@@ -25,10 +25,7 @@ CFLAGS += -I$(BASEDIR)/include/asm-x86/m
 # Prevent floating-point variables from creeping into Xen.
 CFLAGS += -msoft-float
 
-# Disable PIE/SSP if GCC supports them. They can break us.
-$(call cc-option-add,CFLAGS,CC,-nopie)
-$(call cc-option-add,CFLAGS,CC,-fno-stack-protector)
-$(call cc-option-add,CFLAGS,CC,-fno-stack-protector-all)
+$(call cc-options-add,CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS))
 
 ifeq ($(supervisor_mode_kernel),y)
 CFLAGS += -DCONFIG_X86_SUPERVISOR_MODE_KERNEL=1
diff -r 8ee744f57567 -r e6b5b2cb8146 xen/arch/x86/boot/build32.mk
--- a/xen/arch/x86/boot/build32.mk      Wed Jul 21 13:55:00 2010 +0100
+++ b/xen/arch/x86/boot/build32.mk      Sun Jul 25 22:22:43 2010 +0100
@@ -3,10 +3,7 @@ CFLAGS =
 CFLAGS =
 include $(XEN_ROOT)/Config.mk
 
-# Disable PIE/SSP if GCC supports them. They can break us.
-$(call cc-option-add,CFLAGS,CC,-nopie)
-$(call cc-option-add,CFLAGS,CC,-fno-stack-protector)
-$(call cc-option-add,CFLAGS,CC,-fno-stack-protector-all)
+$(call cc-options-add,CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS))
 
 CFLAGS += -Werror -fno-builtin -msoft-float
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-4.0-testing] x86: Add -fno-exceptions to list of possibly-supported CFLAGS for embedded targets., Xen patchbot-4.0-testing <=