Subject: bug#20614: Segmentation fault when building on Power8 Little Endian

From: Eli Zaretskii <[email-masked]>
Date: Thu, 01 Oct 2015 15:22:03 +0300

> From: Petr Hracek <[email-masked]>
> Date: Thu, 1 Oct 2015 13:53:14 +0200
> 
> Some update regarding this bug.
> I have add some defines like:
> $ cat emacs-segment-bss.patch
> diff --git a/src/unexelf.c b/src/unexelf.c
> index d365940..55d7ba6 100644
> --- a/src/unexelf.c
> +++ b/src/unexelf.c
> @@ -846,7 +846,7 @@ unexec (const char *new_name, const char *old_name)
>         if ((OLD_SECTION_H (old_bss_index)).sh_addralign > alignment)
>       alignment = OLD_SECTION_H (old_bss_index).sh_addralign;
> 
> -#ifdef __sgi
> +#if defined __sgi || defined __ppc64le__ || defined __ppc64__
>         /* According to [email-masked] (Karsten Kuenne)
>            and [email-masked] (Alexandre Oliva), on IRIX 5.2, we
>            always get "Program segment above .bss" when dumping
> $
> 
> Here is a full backtrace executed on PPC64LE

Thanks.  Can you repeat this in an unoptimized build?  Otherwise the
backtrace cannot be trusted (and makes little sense).