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

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