Kexec Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Horman <horms@verge.net.au>
To: Laurent Dufour <ldufour@linux.vnet.ibm.com>
Cc: kexec@lists.infradead.org, chaowang@redhat.com
Subject: Re: [PATCH] kexec/ppc64: disabling exception handling when building the purgatory
Date: Wed, 23 Jul 2014 09:02:13 +0900	[thread overview]
Message-ID: <20140723000213.GC21367@verge.net.au> (raw)
In-Reply-To: <20140722162228.12506.28076.stgit@nimbus>

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@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
> 

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

  reply	other threads:[~2014-07-23  0:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-22 10:42 kexec/kdump fails to load in ELF symbol relocation on ppc64 arch WANG Chao
2014-07-22 13:54 ` Laurent Dufour
2014-07-22 16:22 ` [PATCH] kexec/ppc64: disabling exception handling when building the purgatory Laurent Dufour
2014-07-23  0:02   ` Simon Horman [this message]
2014-07-23  0:02   ` Simon Horman
2014-07-24  6:15     ` WANG Chao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140723000213.GC21367@verge.net.au \
    --to=horms@verge.net.au \
    --cc=chaowang@redhat.com \
    --cc=kexec@lists.infradead.org \
    --cc=ldufour@linux.vnet.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox