[PATCH] kexec/ppc64: disabling exception handling when building the purgatory

Simon Horman horms at verge.net.au
Tue Jul 22 17:02:13 PDT 2014


On Tue, Jul 22, 2014 at 06:22:28PM +0200, Laurent Dufour wrote:
> Some Linux distributions would like to turn on the GCC exception handling
> by default. As this option introduces symbols in the built code that are
> defined in a separate shared library, this is not a good idea to have such
> an option activated when building the purgatory.
> 
> This patch forces the exception handling to be turned off when building the
> purgatory on ppc64 BE and LE.
> 
> Signed-off-by: Laurent Dufour <ldufour at linux.vnet.ibm.com>
> ---
>  purgatory/arch/ppc64/Makefile |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/purgatory/arch/ppc64/Makefile b/purgatory/arch/ppc64/Makefile
> index 712e2b194bee..6c58fa20dad9 100644
> --- a/purgatory/arch/ppc64/Makefile
> +++ b/purgatory/arch/ppc64/Makefile
> @@ -9,7 +9,8 @@ ppc64_PURGATORY_SRCS += purgatory/arch/ppc64/console-ppc64.c
>  ppc64_PURGATORY_SRCS += purgatory/arch/ppc64/crashdump_backup.c
>  ppc64_PURGATORY_SRCS += purgatory/arch/ppc64/misc.S
>  
> -ppc64_PURGATORY_EXTRA_CFLAGS += -m64 -msoft-float -fno-stack-protector
> +ppc64_PURGATORY_EXTRA_CFLAGS += -m64 -msoft-float -fno-stack-protector	\
> +				-fno-exceptions
>  ppc64_PURGATORY_EXTRA_ASFLAGS += -m64
>  ifeq ($(SUBARCH),BE)
>  	ppc64_PURGATORY_EXTRA_LDFLAGS += -melf64ppc
> 



More information about the kexec mailing list