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

From: Eli Zaretskii <[email-masked]>
Date: Thu, 01 Oct 2015 19:01:34 +0300

> Cc: [email-masked]
> From: Petr Hracek <[email-masked]>
> Date: Thu, 1 Oct 2015 16:05:57 +0200
> 
> (gdb) bt full
> #0  0x00003fffb5a9a870 in strcmp () at /lib64/power8/libc.so.6
> #1  0x00000000102e3724 in unexec (new_name=0x116387e8 
> "/home/phracek/rpmbuild/BUILD/emacs-24.3/src/emacs", old_name=0x11638838 
> "/home/phracek/rpmbuild/BUILD/emacs-24.3/src/temacs") at unexelf.c:1258
>          section =
>            {sh_name = 122, sh_type = 4, sh_flags = 2, sh_addr = 
> 268483528, sh_offset = 48072, sh_size = 768, sh_link = 5, sh_info = 0, 
> sh_addralign = 8, sh_entsize = 24}

What does this GDB command display in frame #1:

  (gdb) p old_section_names + NEW_SECTION_H (nn).sh_name

?