Blame SOURCES/kexec-tools-2.0.7-kexec-ppc64-disabling-exception-handling-when-buildi.patch

de80c6
From 335bad77fb0750f3961aa8df47c83a522d212b08 Mon Sep 17 00:00:00 2001
de80c6
From: Laurent Dufour <ldufour@linux.vnet.ibm.com>
de80c6
Date: Tue, 22 Jul 2014 18:22:28 +0200
de80c6
Subject: [PATCH] kexec/ppc64: disabling exception handling when building the
de80c6
 purgatory
de80c6
de80c6
Some Linux distributions would like to turn on the GCC exception handling
de80c6
by default. As this option introduces symbols in the built code that are
de80c6
defined in a separate shared library, this is not a good idea to have such
de80c6
an option activated when building the purgatory.
de80c6
de80c6
This patch forces the exception handling to be turned off when building the
de80c6
purgatory on ppc64 BE and LE.
de80c6
de80c6
Signed-off-by: Laurent Dufour <ldufour@linux.vnet.ibm.com>
de80c6
Signed-off-by: Simon Horman <horms@verge.net.au>
de80c6
---
de80c6
 purgatory/arch/ppc64/Makefile | 3 ++-
de80c6
 1 file changed, 2 insertions(+), 1 deletion(-)
de80c6
de80c6
diff --git a/purgatory/arch/ppc64/Makefile b/purgatory/arch/ppc64/Makefile
de80c6
index 712e2b1..6c58fa2 100644
de80c6
--- a/purgatory/arch/ppc64/Makefile
de80c6
+++ b/purgatory/arch/ppc64/Makefile
de80c6
@@ -9,7 +9,8 @@ ppc64_PURGATORY_SRCS += purgatory/arch/ppc64/console-ppc64.c
de80c6
 ppc64_PURGATORY_SRCS += purgatory/arch/ppc64/crashdump_backup.c
de80c6
 ppc64_PURGATORY_SRCS += purgatory/arch/ppc64/misc.S
de80c6
 
de80c6
-ppc64_PURGATORY_EXTRA_CFLAGS += -m64 -msoft-float -fno-stack-protector
de80c6
+ppc64_PURGATORY_EXTRA_CFLAGS += -m64 -msoft-float -fno-stack-protector	\
de80c6
+				-fno-exceptions
de80c6
 ppc64_PURGATORY_EXTRA_ASFLAGS += -m64
de80c6
 ifeq ($(SUBARCH),BE)
de80c6
 	ppc64_PURGATORY_EXTRA_LDFLAGS += -melf64ppc
de80c6
-- 
de80c6
1.9.3
de80c6